Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebSocketManagerCtx ¶
type WebSocketManagerCtx struct {
// contains filtered or unexported fields
}
func New ¶
func New( sessions types.SessionManager, desktop types.DesktopManager, capture types.CaptureManager, webrtc types.WebRTCManager, ) *WebSocketManagerCtx
func (*WebSocketManagerCtx) AddHandler ¶
func (manager *WebSocketManagerCtx) AddHandler(handler types.WebSocketHandler)
func (*WebSocketManagerCtx) Shutdown ¶
func (manager *WebSocketManagerCtx) Shutdown() error
func (*WebSocketManagerCtx) Start ¶
func (manager *WebSocketManagerCtx) Start()
func (*WebSocketManagerCtx) Upgrade ¶
func (manager *WebSocketManagerCtx) Upgrade(checkOrigin types.CheckOrigin) types.RouterHandler
type WebSocketPeerCtx ¶
type WebSocketPeerCtx struct {
// contains filtered or unexported fields
}
func (*WebSocketPeerCtx) Destroy ¶
func (peer *WebSocketPeerCtx) Destroy(reason string)
func (*WebSocketPeerCtx) Ping ¶
func (peer *WebSocketPeerCtx) Ping() error
func (*WebSocketPeerCtx) Send ¶
func (peer *WebSocketPeerCtx) Send(event string, payload any)
Click to show internal directories.
Click to hide internal directories.