# Packages
No description provided by the author
# Functions
HttpdStart starts the server which serves on the following routes:
/ - Serves a HTTP home page with the server status and information about the loaded sim.
InitializeLogger creates the logger for the server module.
NewErrorResponse returns a ResponseStatus object corresponding to the given error.
NewNotificationResponse returns a new ResponseNotification object from the given Event.
NewOkResponse returns a new ResponseStatus object with OK status and empty message.
NewResponse returns a Response with the given data.
Run starts a http web server and websocket hub for the given simulation, on the given address and port.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
DataEvent is the Data part of a ResponseNotification message.
DataStatus is the Data part of a ResponseStatus message.
The Hub makes the interface between the Simulation and the websocket clients.
ParamsListener is the struct of the Request Params for a RequestListener.
ParamsRegister is the struct of the Request Params for a RequestRegister.
Request is a generic request made by a websocket client.
RequestListener is a request made by a websocket client to add or remove a listener.
RequestRegister is a request made by a websocket client to log onto the server.
Response is a status message sent to a websocket client.
ResponseNotification is a message sent by the server to the clients when an event is triggered in the simulation.
ResponseStatus is a status message sent to a websocket client.
# Type aliases
No description provided by the author
No description provided by the author
A MessageType defines the type of a JSON message on websocket.
RawJSON is a json.RawMessage (i.e.
No description provided by the author