websocket

package
v0.0.18 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventsWebsocket added in v0.0.17

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

func CreateEventsWebsocket added in v0.0.17

func CreateEventsWebsocket(eventsChannel chan events.Event) *EventsWebsocket

func (*EventsWebsocket) OnConnect added in v0.0.17

func (*EventsWebsocket) OnDisconnect added in v0.0.17

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

func (*EventsWebsocket) OnMessage added in v0.0.17

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

Jump to

Keyboard shortcuts

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