Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 12 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | const socket = {}; |
||
2 | |||
3 | /** |
||
4 | * WebSocket handler for 'join' event. |
||
5 | * |
||
6 | * @param {String} streamId Id of particular stream, AKA room. |
||
7 | */ |
||
8 | socket.join = (streamId) => { |
||
9 | global.socket.join(streamId); |
||
10 | }; |
||
11 | |||
12 | module.exports = socket; |
||
13 |