import { Socket } from "https://deno.land/x/socket_io@0.2.0/packages/engine.io/lib/socket.ts";
Constructors
Properties
Methods
private
bindTransport(transport: Transport)Attaches handlers for the given transport.
private
closeTransport()Closes the underlying transport.
private
flush()Attempts to flush the packets buffer.
private
onClose(reason: CloseReason)Called upon transport considered closed.
private
onError(err: TransportError)Called upon transport error.
private
onOpen()Called upon transport considered open.
private
resetPingTimeout()Resets ping timeout.
private
schedulePing()Pings client every pingInterval
and expects response
within pingTimeout
or closes connection.
private
sendPacket(type: PacketType, data?: RawData)Sends a packet.
_maybeUpgrade(transport: Transport)
Upgrades socket to the given transport
close()
Closes the socket and underlying transport.