ing
This commit is contained in:
parent
0669531b0f
commit
dfcbc85ce9
@ -61,10 +61,14 @@ func (sh *SocketHandlers) GetProtocol() ProtocolHandler {
|
||||
return sh.Protocol
|
||||
}
|
||||
|
||||
func (sh *SocketHandlers) setOnDisconnected(cb func(soc Socket)) {
|
||||
func (sh *SocketHandlers) setOnDisconnected(cb onDisconnectedFunc) {
|
||||
sh.onDisconnected = cb
|
||||
}
|
||||
|
||||
func (sh *SocketHandlers) getOnDisconnected() onDisconnectedFunc {
|
||||
return sh.onDisconnected
|
||||
}
|
||||
|
||||
// Validate validates the configuration
|
||||
func (sh *SocketHandlers) Validate() {
|
||||
if nil == sh.Protocol {
|
||||
|
Loading…
x
Reference in New Issue
Block a user