refactoring

This commit is contained in:
crusader
2017-09-05 16:48:19 +09:00
parent 7b05682732
commit 0cf3116314
12 changed files with 228 additions and 66 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"git.loafle.net/commons_go/logging"
"git.loafle.net/overflow/overflow_gateway_web/server"
ofs "git.loafle.net/overflow/overflow_subscriber"
"go.uber.org/zap"
)
@@ -25,7 +26,8 @@ type webSubscriberHandlers struct {
}
func (h *webSubscriberHandlers) OnSubscribe(payload string) {
h.logger.Info("Subscriber:Web",
zap.String("payload", payload),
)
uid := "kdkdkd"
soc := server.GetSocket(uid)
soc.Write([]byte(payload))
}