async fn send_frame(socket: &mut WebSocket, frame: Value) -> Result<(), bool>
Sends one JSON frame. Err(true) means the socket send failed.
Err(true)