[HN Gopher] Show HN: I learnt how to use WebSockets, made someth...
___________________________________________________________________
Show HN: I learnt how to use WebSockets, made something
beautiful/terrible
Author : g105b
Score : 71 points
Date : 2021-12-29 20:06 UTC (2 hours ago)
(HTM) web link (www.walloftext.art)
(TXT) w3m dump (www.walloftext.art)
| sokoloff wrote:
| My first thought was "I could stake my life that I'll see some
| ASCII penises on this". Was amused to see just how right that
| assumption was.
| mikehall314 wrote:
| I worked on a similar little project about 10 years ago. We
| called it 300 Lines. It was a shared public canvas which
| displayed only the last 300 lines drawn.
|
| We used socket.io to sync between the client and a NodeJS
| backend. (The whole thing was really an experiment to get to
| grips with the then-nascent Node v0.4)
|
| Of course it was horribly abused, and we took it down after only
| a few days.
| exikyut wrote:
| So what'd The Internet People(tm) do to it, exactly?
|
| DDoS the WebSocket server? Write Very Bad URLs? Worse? :(
|
| I wanted to see. Not fair, takers away of nice things. >:/
| camhart wrote:
| I don't see any messages being sent across the websocket. Is it
| down?
| g105b wrote:
| yeah :( the hacker news hug of death...
| onefuncman wrote:
| what broke?
| ncfausti wrote:
| I think it's the server here:
|
| wss://www.walloftext.art/ws.php
|
| Doesn't seem to be accepting connections when I try.
| exikyut wrote:
| WebSockets in PHP huh? That's a pretty cool approach,
| although it naturally scales terribly (sadly D:).
| ncphil wrote:
| A valiant effort: one that has me thinking the New Years' weekend
| may be the time for me to refresh my own WebSockets knowledge.
| Thanks much for the inspiration!
| Antrikshy wrote:
| Vaguely reminds me of my own web sockets project from years ago,
| https://quibbler.co.
| allen-munsch wrote:
| very cool. would be nice to be able to spin separate rooms for
| meeting Q and A, or in the moment commenting. it's an
| interesting take on commenting.
|
| like comment threading, timeouts, mental map like comment
| grouping.
|
| like evernote and visual programming, but for short lived
| comments,
| madmod wrote:
| RIP. Well it was fun while it lasted.
| quickthrower2 wrote:
| After an hour? Not bad for another 4chan isomorph submitted to
| HN.
| pjot wrote:
| This looks similar to yourworldoftext[0] that was posted a few
| weeks ago. Very cool.
|
| [0]: https://news.ycombinator.com/item?id=29576394
| davidw wrote:
| I can't write letters like e using the normal composition method
| (altGr) on Linux; I guess it's grabbing keystrokes directly. No
| big deal.
|
| What'd you write it in?
| g105b wrote:
| This last week I've been isolating due to contracting COVID at
| Christmas. Not fun... With my time recovering in bed, I finished
| off learning about WebSockets by building
| https://www.walloftext.art and uploaded the code to
| https://github.com/g105b/text with a description of how it works
| and what I've learnt.
|
| The intention was to make the most minimal project that tested
| the bidirectional communication of WebSockets. The end product is
| a scrollable grid that allows users to type anonymous comments.
| Of course this is already getting abused, but that's part of the
| fun! Anyway, I'd appreciate your feedback on the code, and if
| there are any ideas of how to make the end product any
| better/more fun/less crude.
| sanqui wrote:
| Is this perchance inspired by https://www.yourworldoftext.com/? I
| remember reading an interesting technical writeup when that went
| out -- it was early days for websocket. It might be interesting
| to compare how both are built.
| neoncontrails wrote:
| My first thought was "vintage Facebook" actually -- back when
| it was called _the_ Facebook and open only to university
| students. The wall was a beautifully chaotic thing, basically a
| text file to which all your friends had read/write access.
| Definitely no web sockets involved, though.
___________________________________________________________________
(page generated 2021-12-29 23:00 UTC)