1、Disconnect only closes the connection to the current instance room, but not to other instance rooms.
@OverRide
public void disconnect() {
for (SocketIOClient client : clients) {
client.disconnect();
}
}
2、The ack method of sendEvent is not broadcast to all clients, it is only broadcast on the current instance.
1、Disconnect only closes the connection to the current instance room, but not to other instance rooms.
@OverRide
public void disconnect() {
for (SocketIOClient client : clients) {
client.disconnect();
}
}
2、The ack method of sendEvent is not broadcast to all clients, it is only broadcast on the current instance.