Documentation ¶
Index ¶
- type Event
- type WSConn
- func (c *WSConn) Close() error
- func (c *WSConn) Datagrams() <-chan *disco.Datagram
- func (c *WSConn) Events() <-chan Event
- func (c *WSConn) LeadDisco(peerID disco.PeerID) error
- func (c *WSConn) Read(p []byte) (n int, err error)
- func (c *WSConn) Register(ctr disco.Controller)
- func (c *WSConn) RestartListener() error
- func (c *WSConn) STUNs() []string
- func (c *WSConn) ServerURL() string
- func (c *WSConn) Unregister(ctr disco.Controller)
- func (c *WSConn) UpdateNATInfo(natInfo disco.NATInfo) error
- func (c *WSConn) Write(p []byte) (n int, err error)
- func (c *WSConn) WriteTo(p []byte, peerID disco.PeerID, op disco.ControlCode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶ added in v0.9.0
type Event struct { ControlCode disco.ControlCode Data any }
type WSConn ¶
type WSConn struct {
// contains filtered or unexported fields
}
func DialPeermap ¶
func (*WSConn) Register ¶
func (c *WSConn) Register(ctr disco.Controller)
func (*WSConn) RestartListener ¶
func (*WSConn) Unregister ¶
func (c *WSConn) Unregister(ctr disco.Controller)
Click to show internal directories.
Click to hide internal directories.