server/client/socket_handlers.go
crusader 48ecd0a6fa ing
2017-11-30 18:13:58 +09:00

22 lines
333 B
Go

package client
import "net"
type SocketHandlers struct {
}
func (sh *SocketHandlers) OnConnect(socketContext SocketContext, conn net.Conn) {
// no op
}
func (sh *SocketHandlers) OnDisconnect(soc Socket) {
// no op
}
func (sh *SocketHandlers) Validate() {
}
func NewSocketHandler() SocketHandler {
return &SocketHandlers{}
}