6 ms·
Damn, im must be very bad then: 210 lines @ src/webirc.rb Skeletal test, just to move data from/into websocket. Nothing more... Anyway, yes, doable. But compar
by Borg3 1mo ago
Damn, im must be very bad then: 210 lines @ src/webirc.rb
Skeletal test, just to move data from/into websocket. Nothing more...
Anyway, yes, doable. But compared to HTTP1/1 request or just TCP socket, way more complicated. That was unexpected.
- clappski 1mo agoI’ve had more difficulty building http1.1 implementations that broadly work, still a lot of weird stuff like incorrect chucked message parsing you have to handle on the server side. Yeah plain TCP is obviously simpler but you can’t consume a raw socket in a browser, that’s why web sockets win for me - easy to consume over api and browser.