Rhuno
05-20-2011, 08:54 PM
Hey all,
I've been playing around with sockets and have come across something I can't seem to figure out. I've been able to establish a connection and send data back and forth to the server (just a test server on my machine). However, I find that when I use writeInt to pass a value, it is not recognized by the server.
I first started with a python server and switched over to nodeJS to see if it could properly read the int, but it was no good. With python, I can send the value back into Flash and it gets recognized as an int, but that is not the case with nodeJS.
With both socket servers, when I attempt to print the value to the console window, it spits out an empty string. Does anyone have any experience with this that might be able to help out? It would be nice to be able to read the data on the server side as well. :)
Thanks.
I've been playing around with sockets and have come across something I can't seem to figure out. I've been able to establish a connection and send data back and forth to the server (just a test server on my machine). However, I find that when I use writeInt to pass a value, it is not recognized by the server.
I first started with a python server and switched over to nodeJS to see if it could properly read the int, but it was no good. With python, I can send the value back into Flash and it gets recognized as an int, but that is not the case with nodeJS.
With both socket servers, when I attempt to print the value to the console window, it spits out an empty string. Does anyone have any experience with this that might be able to help out? It would be nice to be able to read the data on the server side as well. :)
Thanks.