TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A Silly Usecase for WebSockets (strobe warning)

139 点作者 quintussss大约 3 年前

29 条评论

Retr0id大约 3 年前
PSA: Viewing strobing images has caused temporary (lasting hours) backlight issues on my 2021 Macbook Pro, in the past. Somehow, it causes the backlight to continue flickering for some time afterwards, even when looking at static images. It is barely perceptible, but quite noticeable at the edges of the screen - enough to be annoying.<p>I have no idea if this is a hardware issue with my specific unit, or a more widespread thing.
评论 #30453437 未加载
niel大约 3 年前
EPILEPSY WARNING. Extreme strobe upon opening OP link.<p><pre><code> while (true) { websocket.send(JSON.stringify({ action: &#x27;plus&#x27; })); } </code></pre> Really messed with my vision and crashed chrome. Fun experiment!
评论 #30453444 未加载
reustle大约 3 年前
Cool project. You may want to include an epilepsy warning to this. I don&#x27;t suffer from it, but it definitely messed with my vision a bit.
评论 #30452151 未加载
quintussss大约 3 年前
I made this to learn more about websockets and because a friend thought it would be funny for some reason. Let me know what you think.
评论 #30452101 未加载
cududa大约 3 年前
I appreciate the strobe warning! Not gonna open it so I have no idea what it is but congrats on whatever it is. Anyway have an up vote for the strobe warning
评论 #30453144 未加载
评论 #30452776 未加载
评论 #30452779 未加载
hun3大约 3 年前
&quot;Blockchain will help mitigate the strobe issue&quot; &#x2F;s
评论 #30454335 未加载
paull39大约 3 年前
Really nice!<p>Is reduced motion a good use case for this?<p><a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;CSS&#x2F;@media&#x2F;prefers-reduced-motion" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;CSS&#x2F;@media&#x2F;pref...</a>
ummwhat大约 3 年前
Everyone shut up a minute I&#x27;m trying to flicker some Morse code.
Orangeair大约 3 年前
Seems to have been killed, there&#x27;s just question marks everywhere there should be a dynamic value, and I can&#x27;t interact with anything (Chrome for Android).<p>&gt; ? in the room, click anywhere to turn the light ?<p>&gt; click counter: ?
评论 #30456672 未加载
iampivot大约 3 年前
How about having an off switch on one side and an on switch on the other, then we can fight it out by seeing how many goes for each?<p>Or, make in a flappy bird game? One up and one down button.
评论 #30454611 未加载
0xedb大约 3 年前
SAVE YOUR EYES, a bit:<p>body.style.transition = `background-color 0.9s ease 0.1s`
评论 #30465858 未加载
评论 #30454486 未加载
rpaddock大约 3 年前
There is a company that is selling a LED Lamp that blinks at 40 Hz. They claim it can mitigate Alzheimer&#x27;s.<p>This line of devices has become known as &#x27;Gamma Flashers&#x27;, lots of knockoffs today. From Gamma brain wave state.<p>There is some, small amount, of science to back this up.<p>So who is going to be the first person to put up a 40 Hz flashing website? With appropriate warnings about Photosensitive Epilepsy before showing the page.<p><a href="https:&#x2F;&#x2F;pubmed.ncbi.nlm.nih.gov&#x2F;30155285&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pubmed.ncbi.nlm.nih.gov&#x2F;30155285&#x2F;</a><p><a href="https:&#x2F;&#x2F;www.verywellhealth.com&#x2F;photosensitive-epilepsy-symptoms-causes-diagnosis-and-treatment-4686346" rel="nofollow">https:&#x2F;&#x2F;www.verywellhealth.com&#x2F;photosensitive-epilepsy-sympt...</a>
Fnoord大约 3 年前
Didn&#x27;t the Dutch ISP Xs4all have this in past where you could remote control the lamps of a Christmas tree in their office? That&#x27;s a long time ago, before WebSockets or IoT existed. And the server, while being absolutely hammered, kept up.
drenvuk大约 3 年前
Strobe warning in case someone might be susceptible to it. You got a chuckle out of me.
评论 #30452212 未加载
tonetheman大约 3 年前
Might need more words on the page. Mine came up and it was a lamp and telling me to click with question marks.<p>No indication of how or why this has anything to do with websockets. :(<p>The lamp looks nice though.
andreareina大约 3 年前
<p><pre><code> lamp:51 Uncaught DOMException: An attempt was made to use an object that is not, or is no longer, usable </code></pre> FF97 on Ubuntu<p>ETA: I see it working now
评论 #30453857 未加载
m00dy大约 3 年前
Techno music is missing in the background
napolux大约 3 年前
THIS IS REALLY TRIGGERING. BE WARNED<p>EPILEPSY WARNING
tjkrusinski大约 3 年前
Not me in the console: `setInterval(() =&gt; {document.body.click()}, 20)`
diimdeep大约 3 年前
Keeping peace on planet Earth is like keeping this lamp ON all the time — bumpy road, one click at the time.
suifbwish大约 3 年前
I want to make a version of this that controls my neighbors smart light bulbs.
nigywigy大约 3 年前
Can everyone leave the light on for just a second, please?<p>This is pretty fun haha
festive-minsky大约 3 年前
Reminds me of &#x27;Someone keeps stealing my letters&#x27;
bandie91大约 3 年前
EPILEPSY WARNING
YoungWeb大约 3 年前
setInterval(function(){ document.getElementsByClassName(&quot;bdy&quot;)[0].click();}, 10 )
SLWW大约 3 年前
I love this.<p>This is a fantastic use of websockets
excitednumber大约 3 年前
OP share source? I’m curious!
评论 #30454124 未加载
wglb大约 3 年前
Perhaps we shouldn&#x27;t post something that will cause harm to some people?
wisdom_py大约 3 年前
lol cool