Documentation
¶
Overview ¶
Package messageServer implements a general purpose messaging platform based on the gorilla websocket implementation. The platform is similar to other messaging platforms like pubnub, in that it is channel based.
This means that you can replace it with the distributed messaging platform of your choice as your app grows.
See the web/assets/js/goradd-ws.js for the client side.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MessengerI ¶ added in v0.3.1
type MessengerI interface { // JavascriptInit returns javascript that needs to be called when a page starts to initialize JavascriptInit() string // Send sends a message to the given channel Send(channel string, message string) // JavascriptFiles returns file names and attributes used to embed the need javascript files for your messenger JavascriptFiles() map[string]html5tag.Attributes }
var Messenger MessengerI
Click to show internal directories.
Click to hide internal directories.