wssender

package
v5.0.0-beta.22 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 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 application.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