LiveReloadWebSocketServer class

A WebSocket server which will send reloadSignal to all of the connected clients when onBuild emits.

Call serve to start the server at uri.

Inheritance

Constructors

LiveReloadWebSocketServer(Uri uri, Stream<Null> onBuild)
LiveReloadWebSocketServer.fromParsed(ArgResults results, Stream<Null> onBuild)
Set up a LiveReloadWebSocketServer with arguments parsed by liveReloadArgParser.
factory

Properties

onBuild → Stream<Null>
final
channels → Stream<WebSocketChannel>
A stream which will emit a WebSocketChannel everytime a new client connects to the server. [...]
read-only, inherited
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
uri → Uri
final, inherited

Methods

forceClose() → Future
Forces the server to close.
serve([logMessage = _defaultMessage ]) → Future<Null>
Starts this server at uri and will log a message returned from logMessage when this server is successfully started. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(other) → bool
The equality operator. [...]
inherited