Configuring websocket