wsutil

package
v0.50.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package wsutil contains some Websocket utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetConn

func NetConn(c *websocket.Conn, local, remote net.Addr) net.Conn

NetConn creates opaque wrapper net.Conn for websocket.Conn.

Types

type Addr

type Addr string

Addr is a simple net.Addr implementation.

func (Addr) Network

func (addr Addr) Network() string

Network implements net.Addr. Always returns "websocket".

func (Addr) String

func (addr Addr) String() string

String implements net.Addr and fmt.Stringer. Returns Addr value.

Jump to

Keyboard shortcuts

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