code: public void unregister() {
          // clean up the connections by first closing them
          for (WebSocketConnection conn : conns) {
              conn.close();
          }
          conns.clear();
          // clean up the listeners by first stopping them
          for (IWebSocketDataListener listener : listeners) {
              listener.stop();
          }
          listeners.clear();
      }
docs: Un-registers from the WebSocketScopeManager.