This commit is contained in:
crusader 2017-08-25 14:41:49 +09:00
parent 4a99cee3bc
commit 031aa28f30

View File

@ -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) {
}