gobwas

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WebSocketDial

func WebSocketDial(ctx context.Context, url string) (jsonrpc2.Codec, error)

WebSocketDial returns a Codec that wraps a client-side connection with JSON encoding and decoding.

Types

type Upgrader

type Upgrader struct {
	Upgrader ws.HTTPUpgrader
}

Upgrader upgrades an HTTP request to a WebSocket request and returns the appropriate jsonrpc2 codec.

func (*Upgrader) Upgrade

Jump to

Keyboard shortcuts

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