Client: Event system #4
Labels
No Label
bug
Component/Client
Component/Frontend
Component/Server
duplicate
enhancement
invalid
main feature
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Blocks
#5 Frontend: Build basic UI for sending and receiving messages
binaryDiv/instantchat
Reference: binaryDiv/instantchat#4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implement an event system for the
Clientclass (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'}