public void register ( ) { log . info ( "Application scope: {}" , scope ) ; // set the logger to the app scope //log = Red5LoggerFactory.getLogger(WebSocketScope.class, scope.getName()); WebSocketScopeManager manager = ( ( WebSocketPlugin ) PluginRegistry . getPlugin ( "WebSocketPlugin" ) ) . getManager ( scope ) ; manager . setApplication ( scope ) ; log . info ( "WebSocket app added: {}" , scope . getName ( ) ) ; manager . addWebSocketScope ( this ) ; log . info ( "WebSocket scope added" ) ; }
Registers with the WebSocketScopeManager .