Create the app
To start the server, we leverage the startServer()
function that expects:
A host, usually
127.0.0.1
if you work locally or0.0.0.0
if you work from docker.A port, like
8080
(app may be accessed on<HOST>:<PORT>
in your web browser).A list of functions describing the app, particularly:
call
expects the HTTP response.onWSOpen
expects the websocket server.