Relay is forward or redirect? #298
-
I think it's forwarding. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I don't understand this question. Please show your code and expected outcome. |
Beta Was this translation helpful? Give feedback.
-
Custom servers can transfer a player to another server(different address, different port). |
Beta Was this translation helpful? Give feedback.
-
I want to const { Redirect } = require('bedrock-protocol')
const redirect = new Redirect({
version: '1.16.220',
host: '0.0.0.0',
port: 19132,
destination: {
host: "8.8.8.8",
port: 19132
}
})
redirect.listen() Players connect to this server will be transferred to 8.8.8.8:19132 |
Beta Was this translation helpful? Give feedback.
-
You need to use the Server to implement something like this. When a client joins, you need to send the appropriate packet (a transfer packet) to allow them to join the server. bedrock-protocol provides a proxy under the "Relay" object (documented), but this creates a non-transparent proxy. Closing issue and moving to discussion as this is not an issue with bedrock protocol. |
Beta Was this translation helpful? Give feedback.
You need to use the Server to implement something like this. When a client joins, you need to send the appropriate packet (a transfer packet) to allow them to join the server. bedrock-protocol provides a proxy under the "Relay" object (documented), but this creates a non-transparent proxy.
Closing issue and moving to discussion as this is not an issue with bedrock protocol.