websocket

package
v1.0.58 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallsWebsocket

type CallsWebsocket struct {
	websocket.Websocket
	// contains filtered or unexported fields
}

func CreateCallsWebsocket

func CreateCallsWebsocket(db *gorm.DB, redis *redis.Client) *CallsWebsocket

func (*CallsWebsocket) OnConnect

func (c *CallsWebsocket) OnConnect(ctx context.Context, _ *http.Request, w websocket.Writer, session sessions.Session)

func (*CallsWebsocket) OnDisconnect

func (c *CallsWebsocket) OnDisconnect(_ context.Context, _ *http.Request, _ sessions.Session)

func (*CallsWebsocket) OnMessage

func (c *CallsWebsocket) OnMessage(_ context.Context, _ *http.Request, _ websocket.Writer, _ sessions.Session, _ []byte, _ int)

type PeersWebsocket added in v1.0.35

type PeersWebsocket struct {
	websocket.Websocket
	// contains filtered or unexported fields
}

func CreatePeersWebsocket added in v1.0.35

func CreatePeersWebsocket(db *gorm.DB, redis *redis.Client) *PeersWebsocket

func (*PeersWebsocket) OnConnect added in v1.0.35

func (*PeersWebsocket) OnDisconnect added in v1.0.35

func (c *PeersWebsocket) OnDisconnect(_ context.Context, _ *http.Request, _ sessions.Session)

func (*PeersWebsocket) OnMessage added in v1.0.35

func (c *PeersWebsocket) OnMessage(_ context.Context, _ *http.Request, _ websocket.Writer, _ sessions.Session, _ []byte, _ int)

type RepeatersWebsocket

type RepeatersWebsocket struct {
	websocket.Websocket
	// contains filtered or unexported fields
}

func CreateRepeatersWebsocket

func CreateRepeatersWebsocket(db *gorm.DB, redis *redis.Client) *RepeatersWebsocket

func (*RepeatersWebsocket) OnConnect

func (*RepeatersWebsocket) OnDisconnect

func (c *RepeatersWebsocket) OnDisconnect(_ context.Context, _ *http.Request, _ sessions.Session)

func (*RepeatersWebsocket) OnMessage

Jump to

Keyboard shortcuts

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