code: public void removeConnection(WebSocketConnection conn) {
          if (conn != null) {
              WebSocketScope scope = getScope(conn);
              if (scope != null) {
                  scope.removeConnection(conn);
                  if (!scope.isValid()) {
                      // scope is not valid. delete this.
                      removeWebSocketScope(scope);
                  }
              }
          }
      }
docs: Remove connection from scope.
  
  @param conn
  WebSocketConnection