summaryrefslogtreecommitdiff
path: root/op_crates/websocket/lib.rs
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-04-23 01:31:34 +0200
committerGitHub <noreply@github.com>2021-04-23 01:31:34 +0200
commit2b5cc6b49846c89b3e50a6f51688d527520e4cc4 (patch)
treeefd9acad42dcd7d480da5a43cf4c1a0294952ef6 /op_crates/websocket/lib.rs
parent21ab4d94c0edca94cb71c5e444f93005074b17f2 (diff)
fix: parse websocket messages correctly (#10318)
Diffstat (limited to 'op_crates/websocket/lib.rs')
-rw-r--r--op_crates/websocket/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/op_crates/websocket/lib.rs b/op_crates/websocket/lib.rs
index c7567c197..daf61a908 100644
--- a/op_crates/websocket/lib.rs
+++ b/op_crates/websocket/lib.rs
@@ -282,7 +282,7 @@ pub async fn op_ws_close(
}
#[derive(Serialize)]
-#[serde(rename_all = "camelCase")]
+#[serde(tag = "kind", content = "value", rename_all = "camelCase")]
pub enum NextEventResponse {
String(String),
Binary(Vec<u8>),