Wow, my body actually hurts after gym. I thought at gym that I didn’t really do that much so nothing will hurt, but nope! That’s a good sign.

Continued coding UltimateWS today. Well, I finished it. To implement createWebSocketStream I literally copy-pasted file from ws repo and it worked. That’s even more satisfying than when external things that rely on your library start to work, since usually internal implementation is very different.

Since both UltimateExpress and UltimateWS are done, I was finally able to migrate my website fully to use these libraries! It was annoying, boring and tedious. It’s genuinely crazy how large and complex my website is, and it has such a ton of actual tech debt. In a fucking personal website.

And what’s crazy is that uWS worked almost off first try with my chat and Grillbys. The only thing that needed to be fixed is a check for isBuffer. Migrating to uExpress revealed another bug in it, with trailing slashes, and it has been also successfully squashed.

Now I’m finally free from coding these things… probably… there’s almost definitely gonna be a lot of bugs I’ll need to fix, but it’s better than having to actively code it. I’ll continue switching my projects to my libraries.

It’s really cool to think that you’re actually using your own HTTP and WS servers. Well, ofc the real magic is in uWS, but still, it’s a lot of work to make it all work nicely.