We’ve all been there: your friend who’s a web programmer can type something this simple …
socket = new io.connect('http://blah.com/',
{resource: 'blah/socket.io', transports: ['xhr-polling']});
var content = $('#content');
and then …
socket.on('message', function(message){
content.prepend("<div class='logLine'>" + message + "</div>
");
}) ;
Couldn’t be easier.
i bet it’s just as simple, in Unity, if you know what you’re doing with .Net sockets.
Is there anyone here who knows what they’re doing with .Net sockets?! Not me!
If it’s just a couple lines of code, it would be great to know how to do this. Thanks!