Skip to content

Three ways to build real-time session invalidation

Notifications You must be signed in to change notification settings

robzhu/logged-out

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Three ways to build real-time session invalidation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published