Well, it would be possible in general if DS provided complete control over the WebServer object, as nodeJS does. Another problem I am facing with DS WebServer is that there is trouble sending data to a specific client. Yes... Of course, you can specify the IP address... But what's happening when you have to do with two clients owning the same IP? (eg. in the same device) I completely understand that DS WebServer is not made up for high level developing apps or for eve for a data serving system, but anyway, it could afford many improvements, at least regarding the specification of the recipient of a text message. I would advise you to make the WebServer object-oriented, as regarding the clients, exactly as NodeJS has them. That would allow every developer to have more options than just serving real-time data with no basic options (such as maxPackageSize and an authentication system to permit or reject a connection) and no determination.
Regards