ws

package
v0.0.0-...-fc663ca Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebSocket

type WebSocket struct {
	// contains filtered or unexported fields
}

func NewWebSocket

func NewWebSocket() *WebSocket

func (*WebSocket) Pub

func (c *WebSocket) Pub(header string, body interface{})

func (*WebSocket) Push

func (c *WebSocket) Push(msg []byte)

func (*WebSocket) PushObjectData

func (c *WebSocket) PushObjectData(dataType string, data interface{})

func (*WebSocket) PushStringData

func (c *WebSocket) PushStringData(dataType string, data string)

Jump to

Keyboard shortcuts

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