pub fn websocket_write(stream_id: i64, msg: String) -> i64