src/main/java/com/nhncorp/mods/socket/io/impl/Namespace.java
public void handleDisconnect(String sessionId, String reason, boolean raiseOnDisconnect) {
		SocketIOSocket socket = sockets.get(sessionId);
		if (socket != null && socket.isReadable()) {
			if (raiseOnDisconnect) {
				socket.onDisconnect(reason);
			}
			if (sockets.containsKey(sessionId)) {
				sockets.remove(sessionId);
			}
		}
	}
/**
	 * Called when a socket disconnects entirely.
	 *
	 * @see "SocketNamespace.prototype.handleDisconnect"
	 * @param sessionId
	 * @param reason
	 * @param raiseOnDisconnect
	 */
Called when a socket disconnects entirely.
@see "SocketNamespace.prototype.handleDisconnect"
@param sessionId
@param reason
@param raiseOnDisconnect
Called when a socket disconnects entirely . @see " SocketNamespace . prototype . handleDisconnect " @param sessionId @param reason @param raiseOnDisconnect
public void handleDisconnect(String sessionId, String reason, boolean raiseOnDisconnect) {
		SocketIOSocket socket = sockets.get(sessionId);
		if (socket != null && socket.isReadable()) {
			if (raiseOnDisconnect) {
				socket.onDisconnect(reason);
			}
			if (sockets.containsKey(sessionId)) {
				sockets.remove(sessionId);
			}
		}
	}
public void handleDisconnect ( String sessionId , String reason , boolean raiseOnDisconnect ) { SocketIOSocket socket = sockets . get ( sessionId ) ; if ( socket != null && socket . isReadable ( ) ) { if ( raiseOnDisconnect ) { socket . onDisconnect ( reason ) ; } if ( sockets . containsKey ( sessionId ) ) { sockets . remove ( sessionId ) ; } } }
Called when a socket disconnects entirely.
Called when a socket disconnects entirely .