disconnect when sending image data

21 views
Skip to first unread message

jkc

unread,
May 9, 2013, 2:53:18 AM5/9/13
to socket...@googlegroups.com
I'm using socketstream version 0.3.4.

I'm using an rpc call to send image data extracted from an html5 canvas element as follows:

strDataURI = newCanvas.toDataURL("image/jpeg")

When I send strDataURI along with a couple of other parameters via an rpc call locally on my mac - no problem it works just fine.

When I connect to a remote server (EC2) using the same code as soon as the rpc call is made the socket immediately disconnects with no error message.

All the other socketstream rpc calls work just fine when I am sending to the remote server.

Is there some kind of restriction on the type of data that can be sent by socketstream or engine.io over particular socket connection types (I am thinking I probably get a different type of socket remotely to locally) ?

Davis Ford

unread,
May 9, 2013, 9:01:18 AM5/9/13
to socket...@googlegroups.com
Add this to the server side code and tail the logs

process.env.DEBUG = "engine:socket,engine:ws";

What's going on in your browser console when it disconnects; do you get any errors / warnings?

--
You received this message because you are subscribed to the Google Groups "SocketStream" group.
To unsubscribe from this group and stop receiving emails from it, send an email to socketstream...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

jkc

unread,
May 9, 2013, 10:32:00 AM5/9/13
to socket...@googlegroups.com
No no warnings or errors in the browser console - I just catch the socket disconnect event and issue some of my own debug for that.

I will give the server side debug a try like you suggest.

Thanks
Reply all
Reply to author
Forward
0 new messages