Socket.io 1.0
Hi @ignacio, do you have any plans to support Socket.io 1.0? I am looking for a socket.io client implementation in Lua, do you think lua-websockets might be a better starting point for me?
Thanks!
Hi @naartjie . I'd love to support Socket.io 1.0 but, being realistic, that's not gonna happen soon. (not much free time at the moment).
However, I don't think that lua-websockets would be a good starting point since what you need is a Socket.io client (right?) and that is much higher level than what lua-websocket provides.
I'm not aware of any Socket.io client implementation for Lua. I do have one (unpublished) implementation of a client, but only for 0.7 servers. So that won't work for you either.
Hi @ignacio, and thank you for replying.
I do have one (unpublished) implementation of a client, but only for 0.7 servers.
Is it this client.lua?
The reason I mentioned WebSockets was because I read this blog, where the guy takes a native WebSocket client on iOS, and 'fakes' the socket.io handshake part, and is able to talk to the socket.io backend through a vanilla WebSocket client after that. It looked promising, so I thought I could duplicate that in Lua, but to be honest, I'm not sure where all the reconnect logic goes. I think that part is missing.
Oh, no, that's not it. That represents a "client", but on the server side.
I've just read that blog. That approach might work for you, but as you already saw, there are a lot of loose ends. You'll possibly need to add reconnections. Also, what to do if the transport needs to be regenotiated (ie, downgrading from websockets to xhr requests), etc.
What would be the circumstances where the connection needs to be renegotiated? In case of firewalls?
On Fri, Jan 30, 2015 at 1:12 PM, Ignacio Burgueño [email protected] wrote:
Oh, no, that's not it. That represents a "client", but on the server side.
I've just read that blog. That approach might work for you, but as you already saw, there are a lot of loose ends. You'll possibly need to add reconnections. Also, what to do if the transport needs to be regenotiated (ie, downgrading from websockets to xhr requests), etc.
— Reply to this email directly or view it on GitHub https://github.com/ignacio/LuaNode-Socket.IO/issues/3#issuecomment-72186449 .
Yes, among several others. See: https://github.com/automattic/engine.io
The part after "Better User Experience". They list proxies, personal firewalls and antivirus.