refactoring
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user