wsevents

package
v0.0.0-...-8cf7407 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEventHandler

func GetEventHandler(event string) (func(json.RawMessage), bool)

func RegisterEventHandler

func RegisterEventHandler(event string, handler func(json.RawMessage))

func RemoveEventHandler

func RemoveEventHandler(event string)

func WebSocketHandler

func WebSocketHandler(w http.ResponseWriter, r *http.Request)

Types

type EventHandler

type EventHandler func(data json.RawMessage)

Jump to

Keyboard shortcuts

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