mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 02:12:25 -05:00
[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
This commit is contained in:
parent
cb2f84e551
commit
e323a930bf
4 changed files with 74 additions and 26 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue