Create the app
To start the server, we leverage the startServer() function that expects:
A host, usually
127.0.0.1if you work locally or0.0.0.0if 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:
callexpects the HTTP response.onWSOpenexpects the websocket server.