websocket

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeIntroduction = "introduction"
	TypeOffer        = "offer"
	TypeAnswer       = "answer"
	TypeCandidate    = "candidate"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Exchange

type Exchange struct {
	*Message

	From    string `json:"from"`
	To      string `json:"to"`
	Payload []byte `json:"payload"`
}

func NewAnswer

func NewAnswer(from string, to string, payload []byte) *Exchange

func NewCandidate

func NewCandidate(from string, to string, payload []byte) *Exchange

func NewOffer

func NewOffer(from string, to string, payload []byte) *Exchange

type Introduction

type Introduction struct {
	*Message

	From string `json:"from"`
}

func NewIntroduction

func NewIntroduction(from string) *Introduction

type Message

type Message struct {
	Type string `json:"type"`
}

Jump to

Keyboard shortcuts

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