From e323a930bff2c3a7d6b591e0bdcd092a5ed60f18 Mon Sep 17 00:00:00 2001 From: darrinsmart Date: Sat, 11 Mar 2023 02:10:58 -0800 Subject: [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 --- internal/stream/stream.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'internal/stream/stream.go') 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 -- cgit v1.2.3