Duskt / Duskt/tbsp

chat-room: receiving messages

Open
#5 1 comment 0 reactions 1 assignee Claimed by @Liam-M-Lethbridge View on GitHub
Dominant language
TypeScript
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Description

During a game, the chat-room chat-box should always have an up-to-date log of all of the messages sent visible to the user. The client-side will update whenever it gets an update from the server side that a message has been sent. Since web sockets use TCP, we can guarantee that as long as the sockets are connected, messages will be received in order without any being lost. If the web socket connection is broken, we need a failsafe protocol for that. There are a few ways to do this:

- Either the client keeps track of the connection, and if it only loses connection temporarily then it can request all messages sent after the last message it received.
- Or the server just sends all of the messages and the client refreshes with that.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.