Websocket Chat #3

Open
opened 2021-07-24 15:40:49 +00:00 by erin · 0 comments

Currently the http GET/POST method for the chat works, but slows down the frontend, and isn't the best way to do it. Websockets will speed up the frontend, prevent the backend from getting spammed, and will allow chat messages to be updated faster.

I'm going to try and implement them with the tokio-tungstenite crate, if I can figure it out. As Rocket doesn't currently support websockets, but has a similar thing in the master version, which rocket_contrib doesn't support yet.

Currently the http GET/POST method for the chat works, but slows down the frontend, and isn't the best way to do it. Websockets will speed up the frontend, prevent the backend from getting spammed, and will allow chat messages to be updated faster. I'm going to try and implement them with the [tokio-tungstenite](https://lib.rs/crates/tokio-tungstenite) crate, if I can figure it out. As Rocket doesn't currently support websockets, but has a similar thing in the `master` version, which `rocket_contrib` doesn't support yet.
erin added this to the Get to v1 milestone 2021-07-24 15:40:49 +00:00
erin added the
enhancement
frontend
backend
labels 2021-07-24 15:40:49 +00:00
erin added this to the Backend Server project 2021-07-24 15:40:49 +00:00
char was assigned by erin 2021-07-25 22:28:40 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: erin/lila-chat#3
There is no content yet.