Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebsocketSetting ¶
type WebsocketSetting struct { Enabled bool `json:"enabled"` BufferSize int `json:"bufferSize" yaml:"bufferSize"` MaxMessageSize int64 `json:"maxMessageSize" yaml:"maxMessageSize"` PingPeriod int `json:"pingPeriod" yaml:"pingPeriod"` HeartbeatFailMaxTimes int `json:"heartbeatFailMaxTimes" yaml:"heartbeatFialMaxTimes"` ReadDeadline int `json:"readDeadline" yaml:"readDeadline"` WriteDeadline int `json:"writeDeadline" yaml:"writeDeadline"` }
var Setting *WebsocketSetting = &WebsocketSetting{ Enabled: false, BufferSize: 20480, MaxMessageSize: 65535, PingPeriod: 20, HeartbeatFailMaxTimes: 4, ReadDeadline: 100, WriteDeadline: 35, }
Click to show internal directories.
Click to hide internal directories.