transports

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJSONP

func NewJSONP(ctx *types.HttpContext) *jsonp

func NewPolling

func NewPolling(ctx *types.HttpContext) *polling

func NewTransport

func NewTransport(ctx *types.HttpContext) *transport

func NewWebSocket

func NewWebSocket(ctx *types.HttpContext) *websocket

func Transports

func Transports() map[string]*transports

Types

type Transport

type Transport interface {
	events.EventEmitter

	SetSid(string)
	SetSupportsBinary(bool)
	SetMaxHttpBufferSize(int64)
	SetGttpCompression(*types.HttpCompression)
	SetPerMessageDeflate(*types.PerMessageDeflate)
	SetReadyState(string)
	Parser() parser.Parser
	Sid() string
	Protocol() int
	Name() string
	SupportsFraming() bool
	HandlesUpgrades() bool
	MaxHttpBufferSize() int64
	HttpCompression() *types.HttpCompression
	PerMessageDeflate() *types.PerMessageDeflate
	ReadyState() string
	Writable() bool
	Discard()
	OnRequest(*types.HttpContext)
	DoClose(types.Callable)
	OnError(string, ...string)
	OnPacket(*packet.Packet)
	OnData(types.BufferInterface)
	OnClose()
	Send([]*packet.Packet)
	Close(...types.Callable)
}

Jump to

Keyboard shortcuts

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