socket

package
v0.0.0-...-6fda876 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AcctHub = hub{

	Broadcast: make(chan wsmessage),
	Register:  make(chan *connection),
	// contains filtered or unexported fields
}
View Source
var InviteAcceptanceHub = hub{

	Broadcast: make(chan wsmessage),
	Register:  make(chan *connection),
	// contains filtered or unexported fields
}
View Source
var InviteResponseHub = hub{

	Broadcast: make(chan wsmessage),
	Register:  make(chan *connection),
	// contains filtered or unexported fields
}
View Source
var TeamHub = hub{

	Broadcast: make(chan wsmessage),
	Register:  make(chan *connection),
	// contains filtered or unexported fields
}

Functions

func CreateConnection

func CreateConnection(ids []string, ws *websocket.Conn) *connection

func Init

func Init()

func JsonMessage

func JsonMessage(channel_id string, data map[string]interface{}) wsmessage

func JsonMessagePure

func JsonMessagePure(channel_id string, data map[string]interface{}) wsmessage

func Message

func Message(channel_id string, text string) wsmessage

Types

This section is empty.

Jump to

Keyboard shortcuts

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