ws

package
Version: v0.0.0-...-f6649a6 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2015 License: MIT, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	RawConn          *websocket.Conn
	ReceivedMessages []string
	Timeout          time.Duration
}

func Connect

func Connect(r *testflight.Requester, route string) *Connection

func (*Connection) Close

func (connection *Connection) Close()

func (*Connection) FlushMessages

func (connection *Connection) FlushMessages(number int) *TimeoutError

func (*Connection) ReceiveMessage

func (connection *Connection) ReceiveMessage() (string, *TimeoutError)

func (*Connection) SendMessage

func (connection *Connection) SendMessage(message string)

type TimeoutError

type TimeoutError struct {
}

func (TimeoutError) Error

func (e TimeoutError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL