Finally working

This commit is contained in:
Maciej Hirsz committed 2020-09-29 19:16:28 +02:00
1 parent 4a5bafcd41
commit 8bf1020c16
8 files changed
+108 -87

No files matched your search

+9 -1
View File
@@ -148,7 +148,15 @@ impl StreamHandler<Result<ws::Message, ws::ProtocolError>> for NodeConnector {
return;
}
Ok(ws::Message::Nop) => return,
Err(error) => error!("{:?}", error),
Ok(ws::Message::Continuation(_)) => {
log::error!("Continuation not supported");
return;
}
Err(error) => {
log::error!("{:?}", error);
ctx.stop();
return;
}
};
match serde_json::from_slice(&data) {