Companion blog post
git clone https://github.com/robzhu/logged-out
cd logged-out
npm install
npm run polling
# open polling/index.html in two browser tabs
npm run push
# open push/index.html in two browser tabs
For this demo, you'll need a redis instance. Add a .env
file to the root of the project with the following contents:
REDIS_HOST=<Redis HOST IP Address>
npm run push-redis
# open push-redis/index.html in two browser tabs
You will need .net core 3.1.
cd dotnet-client && dotnet restore
# make sure the server is running
dotnet run
See the blog post for more a more detailed explanation.