deprecated_overflow_gateway.../socket_handler.go
crusader 0669531b0f ing
2017-09-01 11:18:09 +09:00

23 lines
525 B
Go

package overflow_gateway_websocket
import "time"
type (
onDisconnectedFunc func(soc Socket)
)
// 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 onDisconnectedFunc)
getOnDisconnected() onDisconnectedFunc
Validate()
}