-
Notifications
You must be signed in to change notification settings - Fork 433
Support for socket.io 1.0.x #197
base: master
Are you sure you want to change the base?
Conversation
Support is only for send message/send JSON/send event without ack. Binary are not supported.
Message are parsed more correctly (still not really full proof)
Using JsonStringify object
|
I'd love to get this, when do you plan to merge this in? |
|
Agreed - this is awesome. Thank you. |
|
sweinertjr you can just down load his fork it works great |
|
Thanks @francoisTemasys for this PR. One thing I can say right now, I won't merge this directly/completely because I don't like the v0.9/1.0 stuff. I'd rather open up a new branch which is only compatible with v1.x and drop all the old stuff - whoever is using socket.io v0.9, can use the "v0.9" branch from then on ... |
|
can you implement Acknowledgement function :( |
|
@pkyeck I understand your remark but here it's possible to have everything all together so why not? @tsuncp Can you give me an server example with acknowledgement message? I'll see if I have time (Please quote my name on the PR, I'm not checking this page every day) |
|
PR is actually bugged. |
|
@francoisTemasys Hello, thanks for your work ! For acknoledge support here a simple sample on how to do it from the server And from the javascript client |
|
Is this backwards compatible with Socket.IO 0.9? |
|
Hey all, Socket 1.x support would be great, I really want to update my servers to support the new version. I understand this is a big change, so maybe I'll take a look at this PR. I highly like @pkyeck's idea of dropping old cruft. In another year or so, having 0.9 support really won't matter. |
|
@francoisTemasys I test your code but @ploddi is right there a missing = in your file :). I've got the following bug using socket.io 1.1.0, not present on socket.io 1.0.6 When I try the lib with this fix I'm disconnected by the server at the first sendHeartbeat call (I think it is because the lib want to send a message to the server). Here's my log from the app. And here's the server code (really simple :p) EDIT2: I'm looking on a simple workaround but that's not really my stuff. |
Thanks to the suggestion of @ploddi
|
Hi, Thanks for the support. As you can see I don't really have much time to put on that. But with your help I can quickly fix the issue you are reporting. @ploddi I commited your change For the acknowledgement, that's really not my priority now. |
|
Hey guys, what needs to be done to merge this PR? I think a lot of people would really use it, even if acknowledgments are not supported. |
|
Acks are supported in my fork of a fork, just not terribly tested. best, On Oct 15, 2014, at 12:14 PM, bimusiek notifications@github.com wrote:
|
fix when ack number more than 1 digit
fix when ack number more than 1 digit
ack callback on with socketio 1.0
This modification let the socket.io client connect with the 1.0.x version of socket.io and send and receive messages.
Some functionalities are still missing:
It has been with the following setup: