sio

package
v0.0.0-...-241a746 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitSocketIoSever

func InitSocketIoSever(l contract.Logger) error

func NewSocketIOServer

func NewSocketIOServer(l contract.Logger) (*socketio.Server, error)

func SocketIOGinHandler

func SocketIOGinHandler(c *gin.Context)

func SocketIOHandler

func SocketIOHandler(w http.ResponseWriter, r *http.Request)

Types

type IoManager

type IoManager struct {
	// contains filtered or unexported fields
}
var (
	SocketioServer *socketio.Server
	IOM            *IoManager
)

func NewIoManager

func NewIoManager(logger contract.Logger) *IoManager

func (*IoManager) AddIOClient

func (i *IoManager) AddIOClient(c *mod.IoClient)

func (*IoManager) Broadcast

func (i *IoManager) Broadcast(event string, args ...interface{})

func (*IoManager) RemoveIOClient

func (i *IoManager) RemoveIOClient(c *mod.IoClient)

Jump to

Keyboard shortcuts

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