muni-corn / muse-status

shamelessly the most beautiful status command (in rust!)
GNU General Public License v3.0
0 stars 0 forks source link

Let the client format data sent by the daemon #2

Closed muni-corn closed 4 years ago

muni-corn commented 4 years ago

Letting the daemon format the data output is getting tedious and it isn't flexible with clients. We want to let clients display messages when they're not connected to the daemon (error connecting, waiting, etc), but to do this, clients need to know which format to output data as.

We do this by letting the client format data sent by the daemon. The daemon will send some sort of serialized enum (as json or something) to the client.

Consider: DaemonMsg for messages coming from the daemon. Possibly also adding ClientMsg for messages from clients.