room

package
v0.0.0-...-839ea1c Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package room contains the code to multicast between clients

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameters

type Parameters struct {
	Requests <-chan event.Query
}

Parameters to configure a room

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

Worker handles the multicast of messages between clients

func New

func New(
	id user.Identifier,
	requests <-chan event.Query,
) Worker

New creates a new room worker

func (*Worker) Run

func (w *Worker) Run(ctx context.Context)

Run the room's loop

Jump to

Keyboard shortcuts

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