WebSocketPlatform<T, R> mixin

WebSocket platform interface.

Usually, it is used together with the Platform, and when implementing the Spry Platform interface, if the platform supports WebSocket, then you should use it.

class MyPlatform extends Platform with WebSocketPlatform {
    // ...
}
Superclass constraints
Mixin applications
Available extensions

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createHandler(Spry app) PlatformHandler<T, R>

Available on Platform<T, R>, provided by the PlatformAdapterCreateHandler extension

Creates a platform handler.
getClientAddress(Event event, T request) String
Gets a client address.
inherited
getRequestBody(Event event, T request) Stream<Uint8List>?
Gets a request body stream.
inherited
getRequestHeaders(Event event, T request) Headers
Gets a request Headers.
inherited
getRequestMethod(Event event, T request) String
Gets a request method.
inherited
getRequestURI(Event event, T request) Uri
Gets a request Uri.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
respond(Event event, T request, Response response) Future<R>
Respond to a response.
inherited
toString() String
A string representation of this object.
inherited
websocket(Event event, T request, Hooks hooks) FutureOr
Upgrading websocket.

Operators

operator ==(Object other) bool
The equality operator.
inherited