Server class

Inheritance

Constructors

Server([Map? opts])

Properties

allowRequest Function?
getter/setter pair
allowUpgrades bool
getter/setter pair
clients Map
getter/setter pair
clientsCount int
getter/setter pair
getter/setter pair
cookieHttpOnly bool
getter/setter pair
cookiePath ↔ dynamic
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
httpCompression Map
getter/setter pair
initialPacket ↔ dynamic
getter/setter pair
maxHttpBufferSize double
getter/setter pair
perMessageDeflate Map
getter/setter pair
pingInterval int
getter/setter pair
pingTimeout int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transports List<String>
getter/setter pair
upgradeTimeout int
getter/setter pair

Methods

attachTo(HttpServer server, Map? options) → void
Captures upgrade requests for a http.Server.
attachToHttpServer(StreamController<HttpRequest> streamController, Map? options) → void
Captures upgrade requests for a fennec http.Server.
override
clearListeners() → void
inherited
close() → void
override
emit(String event, [dynamic data]) → void
inherited
generateId(SocketConnect connect) String
generate a socket id. Overwrite this method to generate your custom socket id
handleRequest(SocketConnect connect) → void
handleUpgrade(SocketConnect connect) → void
Handles an Engine.IO HTTP Upgrade.
handshake(String transportName, SocketConnect connect) → void
Handshakes a new client.
hasListeners(String event) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
off(String event, [EventHandler? handler]) → void
inherited
on(String event, EventHandler handler) → void
inherited
once(String event, EventHandler handler) → void
inherited
onWebSocket(SocketConnect connect) → void
Called upon a ws.io connection.
toString() String
A string representation of this object.
inherited
upgrades(String transport) List<String>
Returns a list of available transports for upgrade given a certain transport.
verify(SocketConnect connect, bool upgrade, dynamic fn) → void
Verifies a request.

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](Object key) → dynamic
inherited
operator []=(String key, dynamic value) → void
inherited

Static Methods

abortConnection(SocketConnect connect, dynamic code) → void
sendErrorMessage(HttpRequest req, dynamic code) → void