pobview_backend


Home Back Clone

Pobview backend

A websocket server for receiving event from webview app written in Rust. You have to edit this source code.

Data to send/receive

You have to send a json like:

{"token":"jgfsdjfg342jb","name":"execute", "params" :"xterm,0"}

where name is the rust function to execute and params a params list for the function.

and receive a json like:

{"res":"ok","msg":"Command sent"}

or

{"res":"err","mes":"Problem on parsing json"}

No other check is implemented. You have to write yours for the your rust functions.


Powered by Code, a simple repository browser by Fabio Di Matteo