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) }
Click to show internal directories.
Click to hide internal directories.