chat /

Filename Size Date modified Message
Client
Images
Sources
Static
53 B
4 B
3.1 KB
812 B
9 B
420 B
1.1 KB
23.5 KB
415 B
1.3 KB
267 B

Try it out

http://chat4321.herokuapp.com/

Image

Build

Requires both node and swift to be available.

Command Description
npm install Install the client and build dependencies.
npm run dev Compiles and runs both the client and server builds (go to localhost:8000/ to try it out).
npm run build Builds the release version of the application.
swift package update Update all dependencies to latest version.

Dependencies

Messages

Note: | is the pipe character, but isn't being rendered correctly in bitbucket.

Client

Message Description
U|(username) Tells you what is your username.
C|(connectedCount) Tells you the number of connected users at the moment.
M|(time)|(username)|(message) Received a message.
J|(username) A user joined the chat.
L|(username) A user left the chat.

Server

Message Description
R A client is ready, send his username and the last chat messages.
M|(username)|(message) Received a message.