socket handler has been changed.

This commit is contained in:
crusader
2017-09-11 11:22:11 +09:00
parent 00d02cfba7
commit df15f27bca
4 changed files with 85 additions and 50 deletions

View File

@@ -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))
}