I just publicly released ittysockets.com http://ittysockets.com. This is a free, community-supported project, specifically designed to get indie devs playing with realtime features by dropping virtually every barrier imaginable.
# What is it?
**itty-sockets** is an ultra-tiny WebSocket client that pairs \[optionally\] with a public relay server. What's this do for you? For under 500 bytes, and literally zero config/cost, you can use WebSockets in your apps in a couple lines of code. It handles race conditions, easy reconnects, parsing, etc.
// reconnects in a single line setInterval(channel.open, 1000) ```
meanwhile, other users can connect and listen on the same channel
``` connect('my-secret-channel') .on('message', ({ message }) => { // do something }) ``` This site has everything you need to get started, including docs, live demos, and importantly: the ability to log in via GitHub to reserve your own protected namespaces.
You can also just use the client with any existing JSON WebSocket server - you'll lose some of the power of my backend, but still improves the DX over a raw WebSocket instantiation.
>*Disclaimer: This has been powering apps in production (privately) for about a year, including a day-trading platform - so it's built to handle some stress, although as a free service, it comes with no guarantees.* #programming #dev #technology source