Add custom developement server

This implements a tiny WebSocket proxy useful for development
purposes.
This commit is contained in:
Simon Ser
2021-12-01 10:34:41 +01:00
parent a1ff1be342
commit aef2812348
4 changed files with 217 additions and 336 deletions
+3 -9
View File
@@ -61,17 +61,11 @@ server doesn't send PINGs, you can set the `server.ping` option in
### Development server
Any HTTP server capable of serving static files can be used. For instance:
python -m http.server
If your IRC WebSocket server is started on port 8080, you can head over to
`http://localhost:8000/?server=ws://localhost:8080` to connect to the server.
Alternatively, the gamja development dependencies also include an HTTP server:
If you don't have an IRC WebSocket server at hand, gamja's development server
can be used. For instance, to run gamja on Libera Chat:
npm install --include=dev
npm start
npm start -- irc.libera.chat
### Production build