Things get more complicated if you want to run Defold as a server and accept websocket connections. I’m not aware of a Lua websocket server at least.
If you can live with mobile and desktop it gets easier since you only need to care about normal TCP and/or UDP connections.
How much logic do you need on the server?