Skip to content

Instantly share code, notes, and snippets.

@daffl
Last active March 17, 2019 00:10
Show Gist options
  • Save daffl/90a595b06db8378482f881f68bda76f4 to your computer and use it in GitHub Desktop.
Save daffl/90a595b06db8378482f881f68bda76f4 to your computer and use it in GitHub Desktop.
Basic service layer
class ChatApplication {
login (username, password) {},
logout (user) {},
joinChatRoom(roomId, user) {}
sendMessage(message, roomId, user) {}
sendPrivateMessage(message, receiverId, user) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment