22 lines
333 B
Go
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{}
|
||
|
}
|