deprecated_overflow_gateway.../socket_handler.go
crusader 177a3c9a4c ing
2017-08-31 20:19:59 +09:00

18 lines
436 B
Go

package overflow_gateway_websocket
import "time"
// SocketHandler is configuration of the websocket server
type SocketHandler interface {
GetMaxMessageSize() int64
GetWriteTimeout() time.Duration
GetReadTimeout() time.Duration
GetPongTimeout() time.Duration
GetPingTimeout() time.Duration
GetPingPeriod() time.Duration
IsBinaryMessage() bool
GetProtocol() ProtocolHandler
setOnDisconnected(cb func(soc Socket))
Validate()
}