From ea5722a4c3fc16c751ac8c63b427d33c4e2791ca Mon Sep 17 00:00:00 2001 From: jossemargt Date: Mon, 28 Jun 2021 19:26:13 -0600 Subject: [PATCH 1/3] Add multiplex plugin support I am adding all the required configurations and dependencies to enable reveal.js multiplex plugin. When the --multiplex parameter is provided, revealgo adds the /master/ endpoint that renders exactly the same slides, but these ones are able to push their state to the server while the other ones under / follow them. Heads up! This requires an old version of socket.io (v1.6.0) since that is the latest one that github.com/googollee/go-socket.io supports. --- README.md | 2 +- assets/templates/slide.html | 15 ++++++- cli.go | 11 ++++++ go.mod | 6 ++- go.sum | 30 +++++++++++++- server.go | 79 +++++++++++++++++++++++++++++++++++++ 6 files changed, 139 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 235466d..072aa7b 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Open the server address with your web browser: ### Sample Makrdown -``` +```markdown ## This is an H2 Title Description... diff --git a/assets/templates/slide.html b/assets/templates/slide.html index a65357a..fc02162 100644 --- a/assets/templates/slide.html +++ b/assets/templates/slide.html @@ -2,6 +2,7 @@ + @@ -30,7 +31,6 @@ -