sockjsclient

package
v0.0.0-...-2c249d0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2014 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rand

type Rand struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Rand is a threaSafe rand.Rand type

type WebsocketSession

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

func ConnectWebsocketSession

func ConnectWebsocketSession(baseURL string) (*WebsocketSession, error)

func NewWebsocketSession

func NewWebsocketSession(conn *websocket.Conn) *WebsocketSession

func (*WebsocketSession) Close

func (w *WebsocketSession) Close(status uint32, reason string) error

Close closes the session with provided code and reason.

func (*WebsocketSession) ID

func (w *WebsocketSession) ID() string

ID returns a session id

func (*WebsocketSession) Recv

func (w *WebsocketSession) Recv() (string, error)

Recv reads one text frame from session

func (*WebsocketSession) RemoteAddr

func (w *WebsocketSession) RemoteAddr() string

func (*WebsocketSession) Send

func (w *WebsocketSession) Send(str string) error

Send sends one text frame to session

Jump to

Keyboard shortcuts

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