-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to latest socket.io #119
Comments
I can't agree more. Looking forward the next change. |
I had to revert my app back to separated socket.io and express since I need to use 1.3.x. But I’m totally looking forward to an updated version that will have the newer versions in! BTW I tested what happens if I just kinda update all dependencies and try to run a demo:
|
There was quite a bit of cleanup between 0.9.x and 1.3.x of socket.io. There's a migration guide, if anyone has time to submit a Pull Request to fix the breaks. It doesn't look too painful, but I just don't have time to try it out right now. |
That actually seems do-able… If it is a 0.9 to 1.3 guide in particular, then I could do that because I do have a lot of time at hand - and I would really like to use this project! :) So I’ll see if I can make that happen...
|
Since I posted that link, I have spent some time exploring the various options out there for WebSockets. Primus, which calls itself "an abstraction layer for real-time", explains pretty well why they stuck with socket.io 0.9.x.
I realize that express.io is coming from a very different angle than Primus, but it does make me wonder if the decision to stick with socket.io 0.9.x might have been based on similar arguments... |
I have some time now...and due to a refactor of my project I will sit down and work this out now - because this project will very simply reduce the compecity of my code. With refactor, I mean moving my code from being a single-process monster to becoming a multi-process thing. The structure is that there are multiple workers of multiple kinds. for isntance, my local maschine would spawn 8 front-end workers (serving files), 2 workers especially for the chat - that runs via socket.io - and more. But all of them go out on the same http port and such...so it will just be a ton easier if using this project. So yeah, to the fork button I go! |
...and then I learn this thing is coffeescripted. I am doomed :P I can see what needs to be changed thanks to the link for the migration guide BUT coding in a "new" language is gonna be a thing... |
@_router.stack.push layer
|
Okay okay, I got that down. However, I am now stuck at a pretty problem that I know how to solve in JS, at least I think so, but not in Coffee... So, I re-wrote this layer function into a typical callback and now I want to overwrite defaultConfiguration = express.application.defaultConfiguration
express.application.defaultConfiguration = ->
defaultConfiguration.apply this
@use eioInitialize
|
If someone can give me a hint to fix this, let me know please! :) |
Sorry, I don't usually do shameless self-promotion - but I forked express.io a few months ago here. It supports the latest versions of both socket.io and express. I also rewrote it in plain JavaScript, and changed the API (documented in the readme). |
I dont see why this would be shameless? :) It’s very nice to see you re-writing it in pure JS - it really helps a lot! CoffeeScript is just not my language…and I am very sure I am done trying to deal with it :) On Fr. Apr. 17 2015 02:18:51 Simon Bartlett wrote:
|
+1 |
I just found this project via npmjs and I totally love the concept of it and want to use it in my app. However, I have an issue...and that is, the outdated socket.io dependency. You require 0.9.x, but 1.3.x is the current. Is it possible to update master?
The text was updated successfully, but these errors were encountered: