feat: liveview working with warp

This commit is contained in:
Jonathan Kelley committed 2022-03-15 01:02:44 -04:00
1 parent 71c96a8053
commit 71184b51a0
14 files changed
+257 -375

No files matched your search

+1 -11
View File
@@ -12,20 +12,10 @@ pub(crate) struct IpcMessage {
pub params: serde_json::Value,
}
impl IpcMessage {
pub(crate) fn method(&self) -> &str {
self.method.as_str()
}
pub(crate) fn params(self) -> serde_json::Value {
self.params
}
}
pub(crate) fn parse_ipc_message(payload: &str) -> Option<IpcMessage> {
match serde_json::from_str(payload) {
Ok(message) => Some(message),
Err(e) => None,
Err(_) => None,
}
}