-
Notifications
You must be signed in to change notification settings - Fork 0
Documentation
MonteyMontey edited this page Feb 13, 2019
·
3 revisions
Login request from client to server and server response:
{
"type":"login",
"username":"username"
}{
"type":"loginResponse",
"loginSuccessful":true
}Client uploading his message to the server:
{
"type":"uploadMessage",
"sender":"username",
"message":"Wat up?"
}Server distributing message from client to all other clients:
{
"type":"newMessage",
"sender":"username",
"message":"Wat up?"
}Note: This is the bare minimum amount of communication to make it work right know, for later a more sophisticated communication can be defined.