Wiredcraft / dashy

The dashboard showing metrics in the office.
0 stars 1 forks source link

Route messages received via webSockets #107

Open bbss opened 10 years ago

bbss commented 10 years ago

Currently a websocket connection is started and all messages will go to one stream that handles updates.

Since different type of messages will be sent and arrive there needs to be a MessageRouter that uses a WebSocketWrapper that maintains a connection to the back-end and transforms bits to json before it sends it off to the MessageRouter

bbss commented 10 years ago

Currently working on the server side of this, which is different from the dart-side.

The server needs to maintain a record of all datasource instances, I will create a new session struct that will maintain the connections and the datasources. And it will have a function to subscribe the new connections to the datasources it is interested in.