We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Anyone know how to use this with requirejs? I am having some trouble bootsraping it in
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
I also encountered this problem, that is the problem of their own projects, a waste of two days.
My solution is (look at my project)
var socket = io.connect(); return { on: function (eventName, callback) { socket.on(eventName, function () { var args = arguments; $rootScope.$apply(function () { callback.apply(socket, args); }) }) }, emit: function (eventName, data, callback) { socket.emit(eventName, data, function () { var args = arguments; $rootScope.$apply(function () { if( callback ) { callback.apply(socket, args); } }) }) } }
Awesome, works perfectly, thanks!
No branches or pull requests
Anyone know how to use this with requirejs? I am having some trouble bootsraping it in
The text was updated successfully, but these errors were encountered: