UndertowLiveReload

Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def apply(root: Path, host: String, preferredPort: Int, reporter: Reporter, lastPreview: () => String): UndertowLiveReload

Instantiate an undertow file server that speaks the LiveReload protocol.

Instantiate an undertow file server that speaks the LiveReload protocol.

See LiveReload protocol for more details: http://livereload.com/api/protocol/

Value parameters:
host

the hostname of the server.

preferredPort

the preferred port of the server. If the port is not free, the first free port that is an increment of this port is picked. For example, if preferredPort == 4000 and 4000 is not free, then 4001 will be picked instead.

reporter

the reporter to use for logging purposes.

root

the root directory to serve files from.