ws

package
v0.0.0-...-51a2c4b Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package ws implements WebSocket API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(readLimit int64) error

Init must be called once before using this package.

We may have to read about readLimit bytes before we'll notice attempt to send more (in case of WebSocket fragmented message), so try to keep readLimit small enough (about several KB).

func Serve

func Serve(w http.ResponseWriter, r *http.Request)

Serve accepts WebSocket connections.

Types

This section is empty.

Jump to

Keyboard shortcuts

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