From a189c2c80ba111cc0c3b9f73b2297c49d40cbde4 Mon Sep 17 00:00:00 2001 From: duanhf2012 Date: Tue, 21 Apr 2020 14:43:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/GateService/GateService.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/GateService/GateService.go b/example/GateService/GateService.go index a646dc9..61a7716 100644 --- a/example/GateService/GateService.go +++ b/example/GateService/GateService.go @@ -30,7 +30,7 @@ func (slf *GateService) OnInit() error{ slf.processor2 = &processor.PBProcessor{} slf.processor2.RegisterDisConnected(slf.OnWSDisconnected) slf.processor2.RegisterConnected(slf.OnWSConnected) - slf.processor2.Register() + wsService.SetProcessor(slf.processor2,slf.GetEventHandler())