public void makeScope ( String path ) { log . debug ( "makeScope: {}" , path ) ; WebSocketScope wsScope = null ; if ( ! scopes . containsKey ( path ) ) { // new websocket scope wsScope = new WebSocketScope ( ) ; wsScope . setPath ( path ) ; notifyListeners ( WebSocketEvent . SCOPE_CREATED , wsScope ) ; addWebSocketScope ( wsScope ) ; log . debug ( "Use the IWebSocketScopeListener interface to be notified of new scopes" ) ; } else { log . debug ( "Scope already exists: {}" , path ) ; } }
Create a web socket scope . Use the IWebSocketScopeListener interface to configure the created scope .