ws

package
v0.0.0-...-77a9e1b Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChannelSize = 255
View Source
var WsReadBufferSize = 1024
View Source
var WsTimeoutSeconds = 10
View Source
var WsWriteBufferSize = 1024

Functions

This section is empty.

Types

type Client

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

type Hub

type Hub struct {
	Broadcast chan models.WallMessage
	// contains filtered or unexported fields
}

func NewHub

func NewHub() *Hub

func (*Hub) GetCountConnectedClients

func (h *Hub) GetCountConnectedClients() int

func (*Hub) Run

func (h *Hub) Run()

func (*Hub) WsHandler

func (h *Hub) WsHandler(c *gin.Context)

Jump to

Keyboard shortcuts

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