socket handler has been changed.
This commit is contained in:
@@ -27,7 +27,8 @@ type webSubscriberHandlers struct {
|
||||
|
||||
func (h *webSubscriberHandlers) OnSubscribe(payload string) {
|
||||
uid := "kdkdkd"
|
||||
soc := server.GetSocket(uid)
|
||||
channel := "web"
|
||||
soc := server.GetSocket(channel, uid)
|
||||
|
||||
soc.Write([]byte(payload))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user