Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 996 Bytes

README.md

File metadata and controls

52 lines (36 loc) · 996 Bytes

Real-time Session Invalidation

alt text

Companion blog post

Clone & npm install

git clone https://github.com/robzhu/logged-out
cd logged-out
npm install

Polling demo

npm run polling
# open polling/index.html in two browser tabs

Push demo with Web Sockets

npm run push
# open push/index.html in two browser tabs

Push demo with Web Sockets & Redis

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

Native client (.net)

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.