session

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddClient

func AddClient(userID string, conn *websocket.Conn)

AddClient ...

func RemoveClient

func RemoveClient(userID string, conn *websocket.Conn)

RemoveClient ...

func SendMessage

func SendMessage(msg interface{}, userIDs []string)

SendMessage To User..

Types

type Client

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

Client Connection

type Connection

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

Connection Connection

func (*Connection) WriteJSON

func (c *Connection) WriteJSON(v interface{}) error

WriteJSON ...

Jump to

Keyboard shortcuts

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