eiows

package module
v0.0.0-...-990bd57 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 12 Imported by: 0

README

engine.io-ws

GoDoc License

Installation

Use go get.

go get github.com/funcards/engine.io-ws

Then import engine.io-ws package into your own code.

import "github.com/funcards/engine.io-ws"

License

Distributed under MIT License, please see license file within the code for more details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWebSocket

func NewWebSocket(conn *Conn, logger *zap.Logger) *webSocket

Types

type Conn

type Conn struct {
	net.Conn

	Timeout time.Duration
	// contains filtered or unexported fields
}

func (Conn) Name

func (d Conn) Name() string

func (Conn) Read

func (d Conn) Read(p []byte) (int, error)

func (Conn) Write

func (d Conn) Write(p []byte) (int, error)

type Upgrader

type Upgrader struct {
	ws.Upgrader
	// contains filtered or unexported fields
}

func (*Upgrader) Upgrade

func (u *Upgrader) Upgrade(conn io.ReadWriter) (hs ws.Handshake, err error)

Jump to

Keyboard shortcuts

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