diff options
| author | 2023-03-11 02:10:58 -0800 | |
|---|---|---|
| committer | 2023-03-11 11:10:58 +0100 | |
| commit | e323a930bff2c3a7d6b591e0bdcd092a5ed60f18 (patch) | |
| tree | d0c1e408a908a43c256eef7a79e8909abab1b9a0 /internal/stream | |
| parent | [frontend/fix] Mobile css tweaks (#1605) (diff) | |
| download | gotosocial-e323a930bff2c3a7d6b591e0bdcd092a5ed60f18.tar.xz | |
[feature] Support multiple subscriptions on single websocket connection (#1489)
- Allow Oauth authentication on websocket endpoint
- Make streamType query parameter optional
- Read websocket commands from client and update subscriptions
Diffstat (limited to 'internal/stream')
| -rw-r--r-- | internal/stream/stream.go | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/internal/stream/stream.go b/internal/stream/stream.go index ba27c213f..a23a5500a 100644 --- a/internal/stream/stream.go +++ b/internal/stream/stream.go @@ -63,8 +63,10 @@ type StreamsForAccount struct {  type Stream struct {  	// ID of this stream, generated during creation.  	ID string -	// Timeline of this stream: user/public/etc -	Timeline string +	// A set of timelines of this stream: user/public/etc +	// a matching key means the timeline is subscribed. The value +	// is ignored +	Timelines map[string]bool  	// Channel of messages for the client to read from  	Messages chan *Message  	// Channel to close when the client drops away | 
