diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-04-23 01:31:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 01:31:34 +0200 |
commit | 2b5cc6b49846c89b3e50a6f51688d527520e4cc4 (patch) | |
tree | efd9acad42dcd7d480da5a43cf4c1a0294952ef6 /op_crates/websocket/lib.rs | |
parent | 21ab4d94c0edca94cb71c5e444f93005074b17f2 (diff) |
fix: parse websocket messages correctly (#10318)
Diffstat (limited to 'op_crates/websocket/lib.rs')
-rw-r--r-- | op_crates/websocket/lib.rs | 2 |
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>), |