wssender

package
v4.23.18 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const BroadcastRoom = "all"
View Source
const MessageChSize = 100

Variables

This section is empty.

Functions

func TransformToResponse

func TransformToResponse(message proto.Message) []byte

Types

type Message

type Message struct {
	Data []byte
	To   websocket_pb.To
	ID   string
}

func DecodeMessage

func DecodeMessage(data []byte) (msg Message, err error)

func ProtoToMessage

func ProtoToMessage(m contracts.WebsocketMessage, id string) Message

func (Message) Marshal

func (m Message) Marshal() []byte

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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