line-based protocol with WebSocket