Documentation ¶
Overview ¶
wsserver.go
Index ¶
- Variables
- func InitPubSub(redisConf *redis.Options) error
- func ServeApns(w http.ResponseWriter, r *http.Request)
- func ServeNotify(w http.ResponseWriter, r *http.Request)
- func ServeNotifyCORS(w http.ResponseWriter, r *http.Request)
- func ServeWs(w http.ResponseWriter, r *http.Request)
- type NotifyData
- type NotifyResponse
- type WsMessage
Constants ¶
This section is empty.
Variables ¶
View Source
var Logs = logs
Functions ¶
func InitPubSub ¶
func InitPubSub(redisConf *redis.Options) error
func ServeNotify ¶
func ServeNotify(w http.ResponseWriter, r *http.Request)
serveNotify receives the API, parses the body and sends the message to the corresponding websocket. Returns error if no websocket conn exists for a client id or send fails
func ServeNotifyCORS ¶
func ServeNotifyCORS(w http.ResponseWriter, r *http.Request)
Types ¶
type NotifyData ¶
type NotifyResponse ¶
Click to show internal directories.
Click to hide internal directories.