src/main/java/com/nhncorp/mods/socket/io/impl/Manager.java
public void onDisconnect(String sessionId) {
		this.handshaken.remove(sessionId);

		Boolean isOpen = this.open.get(sessionId);
		if (isOpen != null && isOpen) {
			this.open.remove(sessionId);
		}

		Boolean isConnected = this.connected.get(sessionId);
		if (isConnected != null && isConnected) {
			this.connected.remove(sessionId);
		}

		Transport transport = this.transports.get(sessionId);
		if (transport != null) {
			transport.discard();
			this.transports.remove(sessionId);
		}

		if (this.closed.get(sessionId) != null) {
			this.closed.remove(sessionId);
		}

		RoomClient roomClient = this.roomClients.get(sessionId);
		if (roomClient != null) {
			for (String room : roomClient.rooms()) {
				if (roomClient.isIn(room)) {
					this.onLeave(sessionId, room);
				}
			}
			this.roomClients.remove(sessionId);
		}

		//		this.store.destroyClient(id, this.get('client store expiration'));
		//
		//		this.store.unsubscribe('dispatch:' + id);
		//
		//		if (local) {
		//			this.store.unsubscribe('message:' + id);
		//			this.store.unsubscribe('disconnect:' + id);
		//		}
	}
/**
	 * Called when a client disconnects.
	 *
	 * @see "Manager.prototype.onDisconnect"
	 * @param sessionId
	 */
Called when a client disconnects.
Called when a client disconnects .
public void onDisconnect(String sessionId) {
		this.handshaken.remove(sessionId);
		Boolean isOpen = this.open.get(sessionId);
		if (isOpen != null && isOpen) {
			this.open.remove(sessionId);
		}
		Boolean isConnected = this.connected.get(sessionId);
		if (isConnected != null && isConnected) {
			this.connected.remove(sessionId);
		}
		Transport transport = this.transports.get(sessionId);
		if (transport != null) {
			transport.discard();
			this.transports.remove(sessionId);
		}
		if (this.closed.get(sessionId) != null) {
			this.closed.remove(sessionId);
		}
		RoomClient roomClient = this.roomClients.get(sessionId);
		if (roomClient != null) {
			for (String room : roomClient.rooms()) {
				if (roomClient.isIn(room)) {
					this.onLeave(sessionId, room);
				}
			}
			this.roomClients.remove(sessionId);
		}
				this.store.unsubscribe('dispatch:' + id);
				if (local) {
					this.store.unsubscribe('message:' + id);
					this.store.unsubscribe('disconnect:' + id);
				}
	}
public void onDisconnect ( String sessionId ) { this . handshaken . remove ( sessionId ) ; Boolean isOpen = this . open . get ( sessionId ) ; if ( isOpen != null && isOpen ) { this . open . remove ( sessionId ) ; } Boolean isConnected = this . connected . get ( sessionId ) ; if ( isConnected != null && isConnected ) { this . connected . remove ( sessionId ) ; } Transport transport = this . transports . get ( sessionId ) ; if ( transport != null ) { transport . discard ( ) ; this . transports . remove ( sessionId ) ; } if ( this . closed . get ( sessionId ) != null ) { this . closed . remove ( sessionId ) ; } RoomClient roomClient = this . roomClients . get ( sessionId ) ; if ( roomClient != null ) { for ( String room : roomClient . rooms ( ) ) { if ( roomClient . isIn ( room ) ) { this . onLeave ( sessionId , room ) ; } } this . roomClients . remove ( sessionId ) ; } }
Called when a client disconnects.
Called when a client disconnects .
//		this.store.destroyClient(id, this.get('client store expiration')); // //		this.store.unsubscribe('dispatch:' + id); // //		if (local) { //			this.store.unsubscribe('message:' + id); //			this.store.unsubscribe('disconnect:' + id); //		}