Niels-Be / Coffee-light

7 stars 3 forks source link

Websocket API for Notifications #4

Closed Peter42 closed 7 years ago

Peter42 commented 7 years ago
Niels-Be commented 7 years ago

WebSocket Endpoint is /websocket

Message exchange is in JSON format.

Towards Server:

{
  subscribe: { channelId, password },
  unsubscribe: { channelId }
}

Towards Client:

{
  error: { err },
  notification: { notification message },
  data: { name, channel, timestamp }
}
Peter42 commented 7 years ago

Nice