This commit is contained in:
crusader 2017-11-14 16:57:16 +09:00
parent f26ca1311b
commit e41f374eb3
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,13 @@
package subscribe
import (
cwf "git.loafle.net/commons_go/websocket_fasthttp"
oos "git.loafle.net/overflow/overflow_subscriber"
)
type SubscriberHandler interface {
oos.SubscriberHandler
GetSocket(id string) cwf.Socket
GetSockets() map[string]cwf.Socket
}

View File

@ -14,6 +14,14 @@ type SubscriberHandlers struct {
ServletHandler servlet.ServletHandler ServletHandler servlet.ServletHandler
} }
func (sh *SubscriberHandlers) GetSocket(id string) cwf.Socket {
return sh.ServletHandler.GetSocket(id)
}
func (sh *SubscriberHandlers) GetSockets() map[string]cwf.Socket {
return sh.ServletHandler.GetSockets()
}
func (sh *SubscriberHandlers) Validate() { func (sh *SubscriberHandlers) Validate() {
sh.SubscriberHandlers.Validate() sh.SubscriberHandlers.Validate()