Client: Event system #4

Closed
opened 2019-01-20 05:40:52 +01:00 by binaryDiv · 0 comments
Owner

Implement an event system for the Client class (client.js), so that the UI can subscribe to events like 'connected', 'connection closed', 'new message', etc.

Events used in Client:

  • initialized: Connection to server has been established and initialized, ready to send messages.
  • disconnected: Connection has been closed.
  • connectionError: Some connection error occurred.
  • receivedMessage: Chat message has been received. Data: object {from: 'username', text: 'text'}
Implement an event system for the `Client` class (*client.js*), so that the UI can subscribe to events like 'connected', 'connection closed', 'new message', etc. Events used in `Client`: - `initialized`: Connection to server has been established and initialized, ready to send messages. - `disconnected`: Connection has been closed. - `connectionError`: Some connection error occurred. - `receivedMessage`: Chat message has been received. Data: object `{from: 'username', text: 'text'}`
binaryDiv added this to the Basic functionality milestone 2019-01-20 05:40:52 +01:00
binaryDiv self-assigned this 2019-01-20 05:40:52 +01:00
binaryDiv added the
Component/Client
main feature
labels 2019-01-20 05:40:52 +01:00
binaryDiv started working 2019-01-20 05:41:16 +01:00
binaryDiv canceled time tracking 2019-01-20 05:41:21 +01:00
binaryDiv added a new dependency 2019-01-20 06:16:54 +01:00
Sign in to join this conversation.
No description provided.