Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
thepian committed Oct 25, 2015
1 parent c1fc962 commit bfe6829
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/tasks/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = function(ss, router, options, orchestrator) {
var server = http.Server(ss.http.middleware);
server.listen(3000, function() {
ss.stream(server);
debug('started streaming server.');
done();
});
});
Expand Down Expand Up @@ -83,6 +84,7 @@ module.exports = function(ss, router, options, orchestrator) {
ss.defaultTask('stop-server', function() {
if (ss.server.httServer) {
ss.server.httServer.close();
debug('stopped http server.');
}
});

Expand Down Expand Up @@ -132,6 +134,7 @@ module.exports = function(ss, router, options, orchestrator) {
});

ss.defaultTask(bundler.client.name+':pack-js', function(done) {
//TODO wait for ss.loaded promise to have socketstream-transport defined
ss.bundler.packAssetSet('js', bundler.client, bundler.toMinifiedJS,done);
});

Expand Down
5 changes: 4 additions & 1 deletion lib/websocket/transports/sockjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
'use strict';

var fs = require('fs'),
path = require('path');
path = require('path'),
debug = require('debug')('websocket');

var openSocketsById = {};

Expand All @@ -29,6 +30,8 @@ module.exports = function(ss, messageEmitter, httpServer, config /*, sessionOpti
// Tell the SocketStream client to use this transport, passing any client-side config along to the wrapper
ss.client.send('code', 'transport', "require('socketstream').assignTransport(" + JSON.stringify(config.client) + ");");

debug('SockJS transport queued.')

// don't set up server for CLI and test
if (httpServer == null) { return; }

Expand Down

0 comments on commit bfe6829

Please sign in to comment.