wstest

package
v0.0.0-...-897d125 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientConn

func NewClientConn(requestPath, origin string) (*websocket.Conn, error)

create client-side conncetion for the websocket

func NewServer

func NewServer(wshandler websocket.Handler) *httptest.Server

NewServer returns httptest.Server which responds to any request by using websocket handler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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