- working copy of websocket