WebSocketServer

External Documentation

WebSocket server wrapper

Properties

hashCode int
The hash code for this object.
no setterinherited

port int

The port the server is listening on
final

runtimeType Type

A representation of the runtime type of the object.
no setterinherited

Methods

close([void callback()?]) → void
Closes the WebSocket server

noSuchMethod(Invocation invocation) → dynamic

Invoked when a nonexistent method or property is accessed.
inherited

onConnection(void handler(WebSocketClient client, String? url)) → void

Registers a handler for new client connections

toString() String

A string representation of this object.
inherited

Operators

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