websocket

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 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, r *http.Request, w websocket.Writer, session sessions.Session)

func (*CallsWebsocket) OnDisconnect

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

func (*CallsWebsocket) OnMessage

func (c *CallsWebsocket) OnMessage(ctx context.Context, r *http.Request, w websocket.Writer, _ sessions.Session, msg []byte, t 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 (c *PeersWebsocket) OnConnect(ctx context.Context, r *http.Request, w websocket.Writer, session sessions.Session)

func (*PeersWebsocket) OnDisconnect added in v1.0.35

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

func (*PeersWebsocket) OnMessage added in v1.0.35

func (c *PeersWebsocket) OnMessage(ctx context.Context, r *http.Request, w websocket.Writer, _ sessions.Session, msg []byte, t 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 (c *RepeatersWebsocket) OnConnect(ctx context.Context, r *http.Request, w websocket.Writer, session sessions.Session)

func (*RepeatersWebsocket) OnDisconnect

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

func (*RepeatersWebsocket) OnMessage

func (c *RepeatersWebsocket) OnMessage(ctx context.Context, r *http.Request, w websocket.Writer, _ sessions.Session, msg []byte, t int)

Jump to

Keyboard shortcuts

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