websockets

package
v0.0.0-...-fc1d228 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SocketClients = make(map[string]string, 0)
View Source
var SocketInstance *ikisocket.Websocket

Functions

func EmitTo

func EmitTo(socketEvent *SocketEvent, id string)

func EmitToSocketId

func EmitToSocketId(eventType string, eventName string, action string, data interface{}, uuid string)

Types

type SocketEvent

type SocketEvent struct {
	Type      string      `json:"type"`
	Action    string      `json:"action"`
	EventName string      `json:"event_name"`
	Data      interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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