Struct aurelius::Listening [] [src]

pub struct Listening { /* fields omitted */ }

A handle to an active preview server.

The server is listening for HTTP requests on a given port, and broadcasting rendered markdown over a websocket connection on another port.

Methods

impl Listening
[src]

Returns the socket address that the websocket server is listening on.

Returns the socket address that the HTTP server is listening on.

Changes the "current working directory" of the HTTP server. The HTTP server will serve static file requests out of the new directory.

Publish new markdown to be rendered by the server.