Guest User

Untitled

a guest
Apr 30th, 2012
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. Using socket.io inside my namespace
  2. (function() {
  3. // All Standard SocketIO code
  4.  
  5. }).call(MyLibrary);
  6.  
  7. MyLibrary.$ = MyLibrary.jQuery = jQuery.noConflict(true);
  8.  
  9. MyLibrary.io = window.io; // Assign it to your desired namespace
  10. delete window.io; // Remove it from the window namespace
Advertisement
Add Comment
Please, Sign In to add comment