~emersion/public-inbox

gamja: doc: how to connect with a local soju instance v1 SUPERSEDED

Pedro Lucas Porcellis: 1
 doc: how to connect with a local soju instance

 1 files changed, 11 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/public-inbox/patches/23104/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH gamja] doc: how to connect with a local soju instance Export this patch

---
 README.md | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index e5d2245..e9ec663 100644
--- a/README.md
+++ b/README.md
@@ -59,8 +59,17 @@ Start your IRC WebSocket server, e.g. on port 8080. Then run:
    npm install
    npm start

This will start a development HTTP server for gamja. Connect to it and append
`?server=ws://localhost:8080` to the URL.
This will start a development HTTP server for gamja. You can proceed to connect
normally (filling the form), messing with the `config.json` file on gamja's
source code root or overriding the settings via query parameters on the URL.

#### soju

With soju running locally, you'll need to configure the `http-origin` directive
on your soju configuration, to the same host and port you'll be running gamja.

Also, you'll need to set soju to listen as a insecure WebSocket (`listen
ws+insecure`).

## Query parameters

-- 
2.31.1
Maybe we should move this new soju section up under the already existing
soju section, as a new paragraph?