messageServer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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