151152153154155156157
listener.onDisconnect(client); } allClients.remove(client); leave(getName(), client.getSessionId()); storeFactory.getPubSubStore().publish(PubSubStore.LEAVE, new JoinLeaveMessage(client.getSessionId(), getName())); }
165166167168169170171
for (ConnectListener listener : connectListeners) { listener.onConnect(client); } join(getName(), client.getSessionId()); storeFactory.getPubSubStore().publish(PubSubStore.JOIN, new JoinLeaveMessage(client.getSessionId(), getName())); }
223224225226227228229
public void joinRoom(String room, UUID sessionId) { room += getName() + "/" + room; join(room, sessionId); storeFactory.getPubSubStore().publish(PubSubStore.JOIN, new JoinLeaveMessage(sessionId, room)); }
262263264265266267268
public void leaveRoom(String room, UUID sessionId) { room += getName() + "/" + room; leave(room, sessionId); storeFactory.getPubSubStore().publish(PubSubStore.LEAVE, new JoinLeaveMessage(sessionId, room)); }