added basic websocket func