oren — 4/17/2022, 10:47:02 PM

jeffalo has a redirect button which can send all online users to a new url. he’s used it several times.

Here’s the client side code:

o.on("redirect", (function(t) {
  window.location.href = t
})),

(pretty simple)

How it works: when online, all browser tabs connect to a socket.io server. this is how you get real-time stuff like live messages count. It sends a message telling everyone’s browser to redirect. This is the most genius use of socket.io I’ve ever heard

♥ 3 ↩ 1 💬 4 comments

comments

3xiondev:

@jeffalo is this true?

9/14/2023, 11:07:32 AM
oren:

yes, he’s done it several times

9/14/2023, 12:37:02 PM
radi8:

Ay yo

4/18/2022, 1:21:01 AM
lily:

@jeffalo no way (real)

4/17/2022, 10:48:12 PM