ws

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT 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
y or Y : Canonical URL