websocket

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(url url.URL, recv talk.ReceiveFun) (*talk.Agent, error)

NewClient creates a talking agent wrapping a websocket client.

func NewServer

func NewServer(w http.ResponseWriter, r *http.Request, recv talk.ReceiveFun) (*talk.Agent, error)

NewServer creates a talking agent wrapping a websocket server.

func ResizePollerPool

func ResizePollerPool(n int)

ResizePollerPool initializes the poller pool to the desired number of netpoll pollers, which will be used by the 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