ws

package
v0.0.0-...-149ea5c Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitWS

func InitWS(router *gin.Engine)

InitWS add ws handler for api

func IsUserConnected

func IsUserConnected(userID string) bool

IsUserConnected returns true is user with UserID is connected

func Send

func Send(userID string, data interface{})

Send - sends data to connected client

func SendService

func SendService(serviceName string)

SendService notify user about state change

Types

This section is empty.

Jump to

Keyboard shortcuts

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