server/client/socket_handlers.go

22 lines
333 B
Go
Raw Permalink Normal View History

2017-11-30 09:13:58 +00:00
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{}
}