Because no one should have to ask someone else to progress their slides.
Download the tar file that corresponds to your OS (currently only macos is supported) from the Releases page, and extract it as follows:
tar -xvf dg_[VERSION]_[OS].tar.gzMove the resulting nps file into your PATH.
The speaker (the person asking for the next slide), runs the app as follows. This will create a unique topic to share with the presenter:
nsp speak
# Listening for [left | right] direction keys and publishing on "nZRw9s0Tv7", press ctrl+c to close.The presenter (the person with the sides and being asked for the next slide), runs the app as follows. This will subscribe to the speaker's topic and propagate their commands:
nsp present nZRw9s0Tv7
# Subscribed for [left | right] direction keys, press ctrl+c to close.Deploy server
fly launch --name next-slide-please --no-deploy
fly deployTest server
nats context save local \
--server nats://next-slide-please.fly.dev:4222 \
--description 'fly.io' \
--select
nats sub next-slide-please.test
nats pub next-slide-please.test "test"