paint-brush
Enforcing a Single Web Socket Connection per User with Node.js, Socket.IO, and Redisby@mariotacke
97,030 reads
97,030 reads

Enforcing a Single Web Socket Connection per User with Node.js, Socket.IO, and Redis

by Mario Tacke11mJuly 29th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Node.js, Socket.IO, Redis, Node.JS, Socketio-IO, and Redis set up a simple front-end client and server for a web socket game. We need to set up some basic logic to perform the connect/disconnect and hook up our status and token inputs. Letting users connect without knowing who they are is of little use to us. We assume that the connection uses SSL/TLS once deployed and never use an unencrypted connection. We will use socketio-auth to authenticate users and verify them against known users.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Enforcing a Single Web Socket Connection per User with Node.js, Socket.IO, and Redis
Mario Tacke HackerNoon profile picture
Mario Tacke

Mario Tacke

@mariotacke

L O A D I N G
. . . comments & more!

About Author

Mario Tacke HackerNoon profile picture
Mario Tacke@mariotacke

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite