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