Versions in this module Expand all Collapse all v2 v2.7.1 Jan 15, 2024 v2.7.0 Jan 12, 2024 Changes in this version + type Acceptor interface + EnableProxyProtocol func() + GetAddr func() string + GetConnChan func() chan PlayerConn + ListenAndServe func() + Stop func() + type PlayerConn interface + GetNextMessage func() (b []byte, err error) + RemoteAddr func() net.Addr + type TCPAcceptor struct + func NewTCPAcceptor(addr string, certs ...string) *TCPAcceptor + func NewTLSAcceptor(addr string, certs ...tls.Certificate) *TCPAcceptor + func (a *TCPAcceptor) EnableProxyProtocol() + func (a *TCPAcceptor) GetAddr() string + func (a *TCPAcceptor) GetConnChan() chan PlayerConn + func (a *TCPAcceptor) ListenAndServe() + func (a *TCPAcceptor) ListenAndServeTLS(cert, key string) + func (a *TCPAcceptor) Stop() + type WSAcceptor struct + func NewWSAcceptor(addr string, certs ...string) *WSAcceptor + func (w *WSAcceptor) EnableProxyProtocol() + func (w *WSAcceptor) GetAddr() string + func (w *WSAcceptor) GetConnChan() chan PlayerConn + func (w *WSAcceptor) ListenAndServe() + func (w *WSAcceptor) ListenAndServeTLS(cert, key string) + func (w *WSAcceptor) Stop() + type WSConn struct + func NewWSConn(conn *websocket.Conn) (*WSConn, error) + func (c *WSConn) Close() error + func (c *WSConn) GetNextMessage() (b []byte, err error) + func (c *WSConn) LocalAddr() net.Addr + func (c *WSConn) Read(b []byte) (int, error) + func (c *WSConn) RemoteAddr() net.Addr + func (c *WSConn) SetDeadline(t time.Time) error + func (c *WSConn) SetReadDeadline(t time.Time) error + func (c *WSConn) SetWriteDeadline(t time.Time) error + func (c *WSConn) Write(b []byte) (int, error)