You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, i use netty-socketio:1.7.12, when i build cluster netty-socket-io servers(example: server A and Server B).then i found that the connect channel by redis pub only pub client session id(client1 connect serverA then serverA pub message by redis to server B, then in server B has client1's sessionId).but if i want that send data by server B to client1 is impossible. beacause server B only have sessionId not client, then i dont understand how the cluster solution solve i said Scenes. please my paste code:
// BaseStoreFactory.java// sub connect msg,so namespace allClients have not sessionId mapps clientpubSubStore().subscribe(PubSubType.CONNECT, newPubSubListener<ConnectMessage>() {
@OverridepublicvoidonMessage(ConnectMessagemsg) {
authorizeHandler.connect(msg.getSessionId());
log.debug("{} sessionId: {}", PubSubType.CONNECT, msg.getSessionId());
}
}, ConnectMessage.class);
The text was updated successfully, but these errors were encountered:
belugaliu
changed the title
send data question on cluster Solution at wiki's suggestion
[emergency]send data question on cluster Solution at wiki's suggestion
Nov 6, 2017
then i dont understand how the cluster solution solve i said Scenes
According to my understanding - the cluster solution provided in netty-socketio is for broadcasting messages across multiple servers not for the scenario you have mentioned. Have a look at class BroadcastOperations.
hi, i use netty-socketio:1.7.12, when i build cluster netty-socket-io servers(example: server A and Server B).then i found that the connect channel by redis pub only pub client session id(client1 connect serverA then serverA pub message by redis to server B, then in server B has client1's sessionId).but if i want that send data by server B to client1 is impossible. beacause server B only have sessionId not client, then i dont understand how the cluster solution solve i said Scenes. please my paste code:
The text was updated successfully, but these errors were encountered: