LocalServer class

Local web server used for blake serve command.

This server binds to address and starts both HTTP and WebSocket (for live-reload) handler.

Constructors

LocalServer(String path, {String address = '127.0.0.1', int port = 4040, int websocketPort = 4041, required Stream<void> onReload})

Properties

address String
Server address.
final
hashCode int
The hash code for this object.
no setterinherited
httpServer HttpServer
getter/setter pair
onReload Stream<void>
final
path String
Directory where should the LocalServer be started.
final
port int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
websocketPort int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() Future<void>
toString() String
A string representation of this object.
inherited

Operators

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