basics for websocket