blob: 2039cf9560a63be6597a5c88dadf4f366f10b028 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package ws
import "github.com/spiral/roadrunner/v2/plugins/broadcast"
type Subscriber struct {
connections map[string]*Connection
storage broadcast.Storage
}
func NewWSSubscriber() (broadcast.Subscriber, error) {
m := make(map[string]*Connection)
return &Subscriber{
connections: m,
}, nil
}
func (s *Subscriber) Subscribe(upstream chan *broadcast.Message, topics ...string) error {
panic("implement me")
}
func (s *Subscriber) SubscribePattern(upstream chan *broadcast.Message, pattern string) error {
panic("implement me")
}
func (s *Subscriber) Unsubscribe(upstream chan *broadcast.Message, topics ...string) error {
panic("implement me")
}
func (s *Subscriber) UnsubscribePattern(upstream chan *broadcast.Message, pattern string) error {
panic("implement me")
}
|