Websocket Chat #3

Open
opened 3 months ago by erin · 0 comments
erin commented 3 months ago
Owner

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 3 months ago
erin added the
enhancement
frontend
backend
labels 3 months ago
erin added this to the Backend Server project 3 months ago
charlotte was assigned by erin 3 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.