Skip to content

Example on how to use Vapor with Sockets and REST for a chat server

License

Notifications You must be signed in to change notification settings

migs647/VaporChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VaporChat

Example on how to use Vapor with Sockets and REST for a chat server. To use, simply open both projects and start the server first. Feel free to open two different simulators for the client to chat back and forth between them.

Architecture Overview

Using sockets and REST creates testability and still a good way to signal a change. Image of High Level

The client and server both have socket managers to keep track of their respected sockets that have been connected. The ChatManager and ChatMediator help process REST connections. Image of Client Server relationships

Keep in mind this is a Socket / REST hybrid. These OISD connections help explain communication. Image of OISD

About

Example on how to use Vapor with Sockets and REST for a chat server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages