22 lines
438 B
Go
22 lines
438 B
Go
|
package client
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type SocketHandler interface {
|
||
|
GetMaxMessageSize() int64
|
||
|
GetWriteTimeout() time.Duration
|
||
|
GetReadTimeout() time.Duration
|
||
|
GetPongTimeout() time.Duration
|
||
|
GetPingTimeout() time.Duration
|
||
|
GetPingPeriod() time.Duration
|
||
|
|
||
|
// Validate is check handler value
|
||
|
// If you override ths method, must call
|
||
|
//
|
||
|
// func (sh *SocketHandlers) Validate() {
|
||
|
// sh.SocketHandlers.Validate()
|
||
|
// ...
|
||
|
// }
|
||
|
Validate()
|
||
|
}
|