websocket

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostsWebsocket

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

func CreateHostsWebsocket

func CreateHostsWebsocket() *HostsWebsocket

func (*HostsWebsocket) OnConnect

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

func (*HostsWebsocket) OnDisconnect

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

func (*HostsWebsocket) OnMessage

func (c *HostsWebsocket) 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