TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A Silly Usecase for WebSockets (strobe warning)

139 pointsby quintussssabout 3 years ago

29 comments

Retr0idabout 3 years ago
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 未加载
nielabout 3 years ago
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 未加载
reustleabout 3 years ago
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 未加载
quintussssabout 3 years ago
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 未加载
cududaabout 3 years ago
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 未加载
hun3about 3 years ago
&quot;Blockchain will help mitigate the strobe issue&quot; &#x2F;s
评论 #30454335 未加载
paull39about 3 years ago
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>
ummwhatabout 3 years ago
Everyone shut up a minute I&#x27;m trying to flicker some Morse code.
Orangeairabout 3 years ago
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 未加载
iampivotabout 3 years ago
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 未加载
0xedbabout 3 years ago
SAVE YOUR EYES, a bit:<p>body.style.transition = `background-color 0.9s ease 0.1s`
评论 #30465858 未加载
评论 #30454486 未加载
rpaddockabout 3 years ago
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>
Fnoordabout 3 years ago
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.
drenvukabout 3 years ago
Strobe warning in case someone might be susceptible to it. You got a chuckle out of me.
评论 #30452212 未加载
tonethemanabout 3 years ago
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.
andreareinaabout 3 years ago
<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 未加载
m00dyabout 3 years ago
Techno music is missing in the background
napoluxabout 3 years ago
THIS IS REALLY TRIGGERING. BE WARNED<p>EPILEPSY WARNING
tjkrusinskiabout 3 years ago
Not me in the console: `setInterval(() =&gt; {document.body.click()}, 20)`
diimdeepabout 3 years ago
Keeping peace on planet Earth is like keeping this lamp ON all the time — bumpy road, one click at the time.
suifbwishabout 3 years ago
I want to make a version of this that controls my neighbors smart light bulbs.
nigywigyabout 3 years ago
Can everyone leave the light on for just a second, please?<p>This is pretty fun haha
festive-minskyabout 3 years ago
Reminds me of &#x27;Someone keeps stealing my letters&#x27;
bandie91about 3 years ago
EPILEPSY WARNING
YoungWebabout 3 years ago
setInterval(function(){ document.getElementsByClassName(&quot;bdy&quot;)[0].click();}, 10 )
SLWWabout 3 years ago
I love this.<p>This is a fantastic use of websockets
excitednumberabout 3 years ago
OP share source? I’m curious!
评论 #30454124 未加载
wglbabout 3 years ago
Perhaps we shouldn&#x27;t post something that will cause harm to some people?
wisdom_pyabout 3 years ago
lol cool