websocket initializer