-
Notifications
You must be signed in to change notification settings - Fork 1
Chat
Tomen edited this page Oct 24, 2014
·
1 revision
Chat is a service. Chat Messages have a payload with the following format: { "from": "Tommi" "text": "Welcome to the server." }
The client side ChatController
has control over two text fields, one for input and one for output. When users enter chat messages, these are sent to the server. The client only fills out the text
field. The server runs a ChatServer
, which takes client messages, adds the from
field and broadcasts it to all clients.