Added websocket send function