websocket

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(host string) *websocket.Conn

func ReadFromWSToChannel

func ReadFromWSToChannel(c *websocket.Conn, chRead chan<- []byte)

func WriteFromChannelToWS

func WriteFromChannelToWS(c *websocket.Conn, chWrite <-chan interface{})

Types

type Message

type Message struct {
	Op   string        `json:"op,omitempty"`
	Args []interface{} `json:"args,omitempty"`
}

func GetAuthMessage

func GetAuthMessage(key string, secret string) Message

func (*Message) AddArgument

func (m *Message) AddArgument(argument string)

Jump to

Keyboard shortcuts

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