internal

package
v0.0.12-beta Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(ws *websocket.Conn, timeout time.Duration, mt int, payload []byte) error

Write writes a message with the given message type and payload.

func WriteJSON

func WriteJSON(ws *websocket.Conn, timeout time.Duration, payload interface{}) error

WriteJSON writes a message with the given message type and payload.

Types

type ChannelCheck

type ChannelCheck struct {
	ID     string
	Exists chan bool
}

ChannelCheck for sending channel check messages.

Jump to

Keyboard shortcuts

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