serial to websocket and websocket to serial