ing
This commit is contained in:
parent
4a99cee3bc
commit
031aa28f30
|
@ -68,18 +68,6 @@ func (o *ClientOptions) Validate() *ClientOptions {
|
|||
o.MaxMessageSize = DefaultMaxMessageSize
|
||||
}
|
||||
|
||||
if o.OnRequest == nil {
|
||||
o.OnRequest = func(c Client, method string, params interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
}
|
||||
|
||||
if o.OnNotify == nil {
|
||||
o.OnNotify = func(c Client, method string, params interface{}) error {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
if o.onDisconnected == nil {
|
||||
o.onDisconnected = func(c Client) {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user