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)
Click to show internal directories.
Click to hide internal directories.