apifrontend

package
v0.0.0-...-255aa2e Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WsStreamClosed = make(chan bool)

Functions

func BuildFrontend

func BuildFrontend()

func PreventFrontendClose

func PreventFrontendClose()

Types

type WebSocket

type WebSocket struct{}

func (*WebSocket) OnClose

func (c *WebSocket) OnClose(_ *gws.Conn, err error)

func (*WebSocket) OnMessage

func (c *WebSocket) OnMessage(socket *gws.Conn, message *gws.Message)

func (*WebSocket) OnOpen

func (c *WebSocket) OnOpen(socket *gws.Conn)

func (*WebSocket) OnPing

func (c *WebSocket) OnPing(socket *gws.Conn, _ []byte)

func (*WebSocket) OnPong

func (c *WebSocket) OnPong(_ *gws.Conn, _ []byte)

Jump to

Keyboard shortcuts

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