mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 10:46:14 +01:00
show warning and errors for socket.io also show info in dev
This commit is contained in:
@@ -68,7 +68,8 @@ function onUserDisconnect(uid, socketid, socketCount) {
|
|||||||
Sockets.init = function(server) {
|
Sockets.init = function(server) {
|
||||||
// Default socket.io config
|
// Default socket.io config
|
||||||
var config = {
|
var config = {
|
||||||
log: false,
|
log: true,
|
||||||
|
'log level': process.env.NODE_ENV === 'development' ? 2 : 1,
|
||||||
transports: ['websocket', 'xhr-polling', 'jsonp-polling', 'flashsocket'],
|
transports: ['websocket', 'xhr-polling', 'jsonp-polling', 'flashsocket'],
|
||||||
'browser client minification': true,
|
'browser client minification': true,
|
||||||
resource: nconf.get('relative_path') + '/socket.io'
|
resource: nconf.get('relative_path') + '/socket.io'
|
||||||
|
|||||||
Reference in New Issue
Block a user