GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( afb7bc...dee889 )
by Vladimir
32s
created

src/back/ws.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 17
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 2
c 1
b 0
f 0
nc 1
mnd 0
bc 2
fnc 2
dl 0
loc 17
rs 10
bpm 1
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A ws.js ➔ ??? 0 8 1
1
const socketIo = require('socket.io');
2
3
const sockets = require('./sockets/index');
4
5
/**
6
 * Init WebSocket server.
7
 *
8
 * @param {Object} httpServer HTTP server instance object.
9
 */
10
module.exports.listen = (httpServer) => {
11
  const socketServer = socketIo.listen(httpServer);
12
13
  socketServer.on('connect', (socket) => {
14
    global.socket = socket;
15
    global.socket.on('join', sockets.join);
16
  });
17
};
18