gokick

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EndPointWSScheme   = "wss"
	EndPointWSHost     = "ws-us2.pusher.com"
	EndPointWSPath     = "app/eb1d5f283081a78b932c"
	EndPointWSRawQuery = "protocol=7&client=js&version=7.4.0&flash=false"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Kick

type Kick struct {
	Logger bool
	// contains filtered or unexported fields
}

func New

func New(chatroomid string) *Kick

func (*Kick) Listen

func (k *Kick) Listen()

func (*Kick) SetHandler

func (k *Kick) SetHandler(handler func(interface{})) error

type WS

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

func NewWS

func NewWS() *WS

func (*WS) Send

func (ws *WS) Send(v interface{}) error

send json to the server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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