Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageBus ¶
type MessageBus struct { // Set the http file server. Port int ChannelID string Server *glue.Server Channel *glue.Channel // contains filtered or unexported fields }
func NewMessageBus ¶
func NewMessageBus(port int, channel string) *MessageBus
func (*MessageBus) CreateChannel ¶
func (mb *MessageBus) CreateChannel(s *glue.Socket)
func (*MessageBus) CreateServer ¶
func (mb *MessageBus) CreateServer() *glue.Server
Directories ¶
Path | Synopsis |
---|---|
Package glue - Robust Go and Javascript Socket Library.
|
Package glue - Robust Go and Javascript Socket Library. |
backend
Package backend provides the server backend with various socket implementations.
|
Package backend provides the server backend with various socket implementations. |
backend/closer
Emit a close function only once, also if called multiple times.
|
Emit a close function only once, also if called multiple times. |
backend/global
Package global provides global types and constants for the backend packages.
|
Package global provides global types and constants for the backend packages. |
backend/sockets/ajaxsocket
Package ajaxsocket provides the ajax socket implementation.
|
Package ajaxsocket provides the ajax socket implementation. |
log
Package log holds the log backend used by the socket library.
|
Package log holds the log backend used by the socket library. |
utils
Package utils provides utilities for the glue socket implementation.
|
Package utils provides utilities for the glue socket implementation. |
Click to show internal directories.
Click to hide internal directories.