blockchain/internal/lib/websocket/config.go

28 lines
639 B
Go

package websocket
import (
"crypto/tls"
"github.com/lxzan/gws"
"net/http"
"time"
)
type ClientOption struct {
WriteBufferSize int
PermessageDeflate gws.PermessageDeflate
ParallelEnabled bool
ParallelGoLimit int
ReadMaxPayloadSize int
ReadBufferSize int
WriteMaxPayloadSize int
CheckUtf8Enabled bool
Logger gws.Logger
Recovery func(logger gws.Logger)
Addr string
RequestHeader http.Header
HandshakeTimeout time.Duration
TlsConfig *tls.Config
NewDialer func() (gws.Dialer, error)
NewSession func() gws.SessionStorage
}