正在加载视频...

视频加载失败

Here is how these multi-browser demos are being made. It's not websockets!

508,914 次观看 • 2 年前 •via X (Twitter)

11 条评论

Wes Bos 的头像
Wes Bos2 年前

help me

Wes Bos 的头像
Wes Bos2 年前

Code here. 129 lines of hastily written Vanilla TypeScript →

Wes Bos 的头像
Wes Bos2 年前

this but 20 popup windows moving them every 1 second

JLarky 的头像
JLarky2 年前

Why do you use local storage for this? You have broadcast events :)

Wes Bos 的头像
Wes Bos2 年前

Seems more complex if all clients are sending to all other clients, or needing a “host” that opens all other windows. Probably the better API for stuff other than a silly demo though

flavio 的头像
flavio2 年前

Multi-windows in a single-browser, right? Or should I have my mind blown?

Wes Bos 的头像
Wes Bos2 年前

single browser. would need websockets or webrtc to to do cross browser

Ben Harraway 的头像
Ben Harraway2 年前

Why not Broadcast API?

Ole-Martin 的头像
Ole-Martin2 年前

All I can think is this is another way of finger printing users, based on where they have the browser located on screen 😬

Wes Bos 的头像
Wes Bos2 年前

So many cool APIs stripped from Us because of fingerprinting. I don’t think access to data outside the browser like this would ever be approved these days

Leo Galante 的头像
Leo Galante2 年前

@wesbos exodia edition

相关视频