ws

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WsAssets

func WsAssets() string

Types

type Client

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

Client is a middleman between the websocket connection and the hub.

type WebSocketHub

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

func NewWebSocketHub

func NewWebSocketHub() *WebSocketHub

type WsMessenger

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

func (*WsMessenger) JavascriptFiles

func (m *WsMessenger) JavascriptFiles() map[string]html.Attributes

func (*WsMessenger) JavascriptInit

func (m *WsMessenger) JavascriptInit() string

func (*WsMessenger) Send

func (m *WsMessenger) Send(channel string, message string)

func (*WsMessenger) Start

func (m *WsMessenger) Start(pattern string, wsPort int, tlsCertFile string, tlsKeyFile string, tlsPort int)

Jump to

Keyboard shortcuts

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