websockets

package
v2.0.143 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUnderlayFactory

func NewUnderlayFactory(id *identity.TokenId, peer *websocket.Conn, certs []*x509.Certificate) channel.UnderlayFactory

Types

type Underlay

type Underlay struct {
	// contains filtered or unexported fields
}

func (*Underlay) Certificates

func (self *Underlay) Certificates() []*x509.Certificate

func (*Underlay) Close

func (self *Underlay) Close() error

func (*Underlay) ConnectionId

func (self *Underlay) ConnectionId() string

func (*Underlay) Create

func (self *Underlay) Create(time.Duration, transport.Configuration) (channel.Underlay, error)

func (*Underlay) GetLocalAddr

func (impl *Underlay) GetLocalAddr() net.Addr

func (*Underlay) GetRemoteAddr

func (impl *Underlay) GetRemoteAddr() net.Addr

func (*Underlay) Headers

func (self *Underlay) Headers() map[int32][]byte

func (*Underlay) Id

func (self *Underlay) Id() string

func (*Underlay) IsClosed

func (self *Underlay) IsClosed() bool

func (*Underlay) Label

func (self *Underlay) Label() string

func (*Underlay) LogicalName

func (self *Underlay) LogicalName() string

func (*Underlay) Rx

func (self *Underlay) Rx() (*channel.Message, error)

func (*Underlay) SetWriteDeadline added in v2.0.45

func (self *Underlay) SetWriteDeadline(deadline time.Time) error

func (*Underlay) SetWriteTimeout

func (self *Underlay) SetWriteTimeout(duration time.Duration) error

func (*Underlay) Tx

func (self *Underlay) Tx(m *channel.Message) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL