Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

nowjs.options.clientWrite was suppressing nowjs#connect. Amend this.

  • Loading branch information...
commit cc73280cf9f204631d9ca4aff992da2f0710ce9e 1 parent 12697e9
@steveWang steveWang authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/user.js
View
12 lib/user.js
@@ -138,12 +138,6 @@ exports.initialize = function (nowjs) {
}
});
- // Called after initial scope sent. Ready handler
- socket.on('rd', function rdHandler() {
- var user = nowUtil.clone(self, {'_events': nowjs._events});
- nowjs.emit.call(user, 'connect');
- });
-
// Variable deletion handler
socket.on('del', function rfcHandler(data) {
// Takes an array of fqns to delete.
@@ -156,6 +150,12 @@ exports.initialize = function (nowjs) {
});
}
+ // Called after initial scope sent. Ready handler
+ socket.on('rd', function rdHandler() {
+ var user = nowUtil.clone(self, {'_events': nowjs._events});
+ nowjs.emit.call(user, 'connect');
+ });
+
socket.on('disconnect', function () {
var user = nowUtil.clone(self, {'_events': nowjs._events});
Please sign in to comment.
Something went wrong with that request. Please try again.