messageServer

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasChannel added in v0.0.3

func HasChannel(channel string) bool

func MakeHub

func MakeHub()

func SendMessage

func SendMessage(channel string, message map[string]interface{})

func Start

func Start(mux *http.ServeMux)

func WebsocketHandler

func WebsocketHandler() http.Handler

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

Jump to

Keyboard shortcuts

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