websocket

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWebsocketHubMiddleware

func NewWebsocketHubMiddleware() fw.IMiddlewareCtl

func NewWebsocketMiddleware

func NewWebsocketMiddleware() fw.IMiddlewareMethod

Types

type Client

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

type Hub

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

func (*Hub) Broadcast

func (h *Hub) Broadcast(message []byte)

func (*Hub) SendByClient

func (h *Hub) SendByClient(id string, message []byte)

type WebsocketHubMiddleware

type WebsocketHubMiddleware struct {
	*fw.MiddlewareCtl
	// contains filtered or unexported fields
}

WebsocketHubMiddleware used for chat

func (*WebsocketHubMiddleware) Execute

func (*WebsocketHubMiddleware) Router

type WebsocketMiddleware

type WebsocketMiddleware struct {
	*fw.MiddlewareMethod
	// contains filtered or unexported fields
}

WebsocketMiddleware used for simple websocket communication with server

func (*WebsocketMiddleware) Execute

Jump to

Keyboard shortcuts

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