nowelium / socket.io-titanium

socket.io for titanium mobile
http://youtu.be/10ogNjWCpyc
Other
136 stars 34 forks source link

socket.io link #1

Closed phtphan closed 13 years ago

phtphan commented 13 years ago

Hi Yusuke Hata,

I've tried to use socket.io-titanium today but failed since my Resources/socket.io (https://github.com/LearnBoost/socket.io.git) folder is some how different from the one that you listed in the README.

Also the git link to socket.io from README is also broken.

Please help me take a look,

Thanks,

Phillip Phan

phtphan commented 13 years ago

Shoud it refer to this? https://github.com/LearnBoost/socket.io-client.git

nowelium commented 13 years ago

Hi phtphan,

Sorry for the late response. First, Please forgive thing with unskilled English.(i'm sorry...)

README was outdated. i'm sorry.

https://github.com/LearnBoost/Socket.IO.git (source https://github.com/LearnBoost/Socket.IO), it was deadlinked be just newly released(socket.io-0.7.0) several days ago.

I made the branch including the code of 0.6.2 at local-code.: https://github.com/nowelium/socket.io-titanium/tree/socket.io-node-client-0.6.2

please try 'git clone git@github.com:nowelium/socket.io-titanium.git -b socket.io-node-client-0.6.2' and use i'm writing for corresponding to socket.io-0.7.0 is scheduled to public by the end of several days.

thanks, Yusuke Hata

phtphan commented 13 years ago

Thanks Yusuke,

I'll try that right away.

I have another question about the Transport: Currently, seem like it is using "xhr-polling" transport. Is it possible to use "websocket" instead?

Thanks,

Phillip Phan

On Jul 3, 2011, at 7:53 AM, nowelium wrote:

Hi phtphan,

Sorry for the late response. First, Please forgive thing with unskilled English.(i'm sorry...)

README was outdated. i'm sorry.

"https://github.com/LearnBoost/Socket.IO.git"source:https://github.com/LearnBoost/Socket.IO, it was deadlinked be just newly released(socket.io-0.7.0) several days ago.

I made the branch including the code of 0.6.2 at local-code.: https://github.com/nowelium/socket.io-titanium/tree/socket.io-node-client-0.6.2

please try "git clone git@github.com:nowelium/socket.io-titanium.git -b socket.io-node-client-0.6.2" and use i'm writing for corresponding to socket.io-0.7.0 is scheduled to public by the end of several days.

thanks, Yusuke Hata

Reply to this email directly or view it on GitHub: https://github.com/nowelium/socket.io-titanium/issues/1#issuecomment-1493340

kn0ll commented 13 years ago

Just to chime in as I did a bit of looking myself recently... Titanium doesn't support Websockets at the moment as far as I can tell. They do support TCP sockets though, which would be preferable.

The issue there is that the entire backend of Socket.IO (every transport) is set up to run through nodes HTTP server, not it's TCP server... so it would require a bit of manipulation...

nowelium commented 13 years ago

hi phtphan,

"websocket" implementation

not yet now. It is necessary to wait until it comes to be able to use WebSocket by TiMob.

or Ti.Network.Socket.TCP might be able to implements like ActionScript implementation(https://github.com/LearnBoost/socket.io-client/blob/master/lib/vendor/web-socket-js/flash-src/WebSocket.as)

... but time cannot be taken, it is not to try...