← Blog

Socket.IO without a server: your event handlers are SQL functions

Your Socket.IO client can now connect to a SnoutData Cloud project as it is. The code that answers it, the part you used to keep running on a server, is a SQL function in your own database, run as the user who sent the event, in the same transaction as what it writes.