A simple chat application made using websockets.
addMessage
: should only be triggered when a message is receivednewMessage
: should only be triggered when you send a message and should not render into the application, theaddMessage
action should do that using asocket.on
listener.clientJoin
: should trigger once you enter your name and establish a connection with the websocketpersonJoin
: should trigger when another person joins the channelpersonLeave
: should trigger when another person leaves the channel