rtio

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 3 Imported by: 0

README

RTIO (Real Time Input Output)

Engine for broadcasting based communication.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Hub             *Hub
	Conn            *ws.Conn
	ReadSizeLimit   int64
	PingInterval    time.Duration
	PongWait        time.Duration
	MessagesToSend  chan []byte
	ValidateMessage func(msg []byte, client *Client) (bool, []byte)
}

func (*Client) CloseConn

func (c *Client) CloseConn()

func (*Client) ReadMessages

func (c *Client) ReadMessages()

func (*Client) WriteMessages

func (c *Client) WriteMessages()

type Hub

type Hub struct {
	Clients     map[*Client]bool
	Subscribe   chan *Client
	Unsubscribe chan *Client
}

func CreateHub

func CreateHub() *Hub

func (*Hub) ClearClient

func (h *Hub) ClearClient(c *Client)

func (*Hub) Run

func (h *Hub) Run()

Directories

Path Synopsis
wio module

Jump to

Keyboard shortcuts

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