-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Open
Labels
topic/uiChange the appearance of the Gitea UIChange the appearance of the Gitea UItype/featureCompletely new functionality. Can only be merged if feature freeze is not active.Completely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.
Description
Feature Description
Currently we have Server-Sent-Events aka. EventSource
for a few things but it's too unreliable because browser enforce a 6 connection limit per browser window and I think our implementation also has a number of unresolved bugs.
We should therefore switch EventSource to Websockets. From what I gather, suitable modules are:
- https://github.com/olahol/melody convenient high-level API, but builds on top of deprecated gorilla/websocket
- https://github.com/gobwas/ws slightly less convenient medium-level API
- https://github.com/gorilla/websocket deprecated very low-level API
For the frontend side, I recommend SharedWorker similar to this that can communicate "events" that are simple JSON messages to all open tabs. Could initially also be done on main thread because workers are a very hard to debug in browsers.
lifeofguenter and corpix
Metadata
Metadata
Assignees
Labels
topic/uiChange the appearance of the Gitea UIChange the appearance of the Gitea UItype/featureCompletely new functionality. Can only be merged if feature freeze is not active.Completely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.