chat /

Filename Size Date modified Message
Client
Images
Sources
Static
Views
40 B
- move the typescript files to the 'Client' directory
5 B
- update swift to v4.0
5.0 KB
- convert the swift package configuration file to the version 4.0
968 B
- convert the swift package configuration file to the version 4.0
9 B
- fix, the built binaries are placed on the PATH, so just need to call by its executable name
1.1 KB
- update license
364 B
- update typescript to v2.6
156 B
- update typescript to v2.6
1.2 KB
- update swift to v4.0
230 B
- update typescript to v2.3.3

Try it out

http://chat4321.herokuapp.com/

Image

Build

Command Description
swift package update Update all dependencies to latest version.
swift build && .build/debug/chat or swift run Build and run the server.
tsc -w or npm run ts Compile the typescript files.

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.