Documentation ¶
Index ¶
- Constants
- func ClientTLSConfig(u url.URL, i *identity.TokenId) *tls.Config
- func Dial(name string, u url.URL, i *identity.TokenId, _ time.Duration, ...) (transport.Conn, error)
- func DialWithLocalBinding(name string, u url.URL, localBinding string, i *identity.TokenId, ...) (transport.Conn, error)
- func Listen(bindAddress string, name string, i *identity.TokenId, ...) (io.Closer, error)
- type AddressParser
- type Config
Constants ¶
View Source
const Type = "wss"
Variables ¶
This section is empty.
Functions ¶
func ClientTLSConfig ¶ added in v2.0.87
func DialWithLocalBinding ¶
Types ¶
type AddressParser ¶
type AddressParser struct{}
func (AddressParser) Parse ¶
func (ap AddressParser) Parse(s string) (transport.Address, error)
type Config ¶ added in v2.0.87
type Config struct { WriteTimeout time.Duration ReadTimeout time.Duration IdleTimeout time.Duration PongTimeout time.Duration PingInterval time.Duration HandshakeTimeout time.Duration ReadBufferSize int WriteBufferSize int EnableCompression bool Identity identity.Identity }
func NewDefaultConfig ¶ added in v2.0.87
func NewDefaultConfig() *Config
Click to show internal directories.
Click to hide internal directories.