mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-23 22:04:49 +08:00
优化WSService接口
This commit is contained in:
@@ -80,8 +80,8 @@ func (ws *WSService) OnInit() error{
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ws *WSService) WSEventHandler(ev *event.Event) {
|
func (ws *WSService) WSEventHandler(ev event.IEvent) {
|
||||||
pack := ev.Data.(*WSPack)
|
pack := ev.(*event.Event).Data.(*WSPack)
|
||||||
switch pack.Type {
|
switch pack.Type {
|
||||||
case WPT_Connected:
|
case WPT_Connected:
|
||||||
pack.MsgProcessor.ConnectedRoute(pack.ClientId)
|
pack.MsgProcessor.ConnectedRoute(pack.ClientId)
|
||||||
|
|||||||
Reference in New Issue
Block a user