Skip to content

Commit 5c3c459

Browse files
ThanhDodeurOdooseb-odoo
authored andcommitted
[ADD] SFU server
The SFU is a server used to relay streaming between the participants of a call to provide better scalability and performance than the current peer-to-peer connections. [README](https://github.com/odoo/sfu/tree/master-discuss-rtc-server2-tso/) Old PR: odoo/enterprise#45861 Related to: odoo/odoo#132153 task-2765922
1 parent 1fe1dd5 commit 5c3c459

31 files changed

+11787
-0
lines changed

.eslintrc.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
// Based on Odoo's .eslintrc.js
2+
{
3+
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:node/recommended"],
4+
"parserOptions": {
5+
"ecmaVersion": 2022,
6+
"sourceType": "module"
7+
},
8+
"env": {
9+
"node": true,
10+
"browser": false,
11+
"es2022": true
12+
},
13+
"overrides": [
14+
{
15+
"files": ["tests/utils/*.js", "tests/*.js"],
16+
"plugins": ["jest", "import"],
17+
"env": {
18+
"jest": true,
19+
"jest/globals": true
20+
},
21+
"extends": ["plugin:jest/recommended"]
22+
},
23+
{
24+
"files": ["src/client.js"],
25+
"env": {
26+
"browser": true,
27+
"node": false
28+
}
29+
},
30+
{
31+
"files": ["src/shared/*.js"],
32+
"env": {
33+
"browser": true,
34+
"node": true
35+
}
36+
}
37+
],
38+
"ignorePatterns": "dist/*",
39+
"rules": {
40+
"prettier/prettier": ["error", {
41+
"tabWidth": 4,
42+
"semi": true,
43+
"singleQuote": false,
44+
"printWidth": 100,
45+
"endOfLine": "auto"
46+
}],
47+
"node/no-unsupported-features/es-syntax": "off",
48+
"node/no-missing-import": "off",
49+
"no-console": "error",
50+
"no-undef": "error",
51+
"no-restricted-globals": ["error", "event", "self"],
52+
"no-const-assign": ["error"],
53+
"no-debugger": ["error"],
54+
"no-dupe-class-members": ["error"],
55+
"no-dupe-keys": ["error"],
56+
"no-dupe-args": ["error"],
57+
"no-dupe-else-if": ["error"],
58+
"no-unsafe-negation": ["error"],
59+
"no-duplicate-imports": ["error"],
60+
"valid-typeof": ["error"],
61+
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false, "caughtErrors": "all" }],
62+
"curly": ["error", "all"],
63+
"no-restricted-syntax": ["error", "PrivateIdentifier"],
64+
"prefer-const": ["error", {
65+
"destructuring": "all",
66+
"ignoreReadBeforeAssign": true
67+
}]
68+
}
69+
}

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules
2+
3+
# made with jest coverage
4+
coverage
5+
/bundle
6+
7+
# whitelist
8+
!.eslintrc.json
9+
!package.json
10+
!jsconfig.json

0 commit comments

Comments
 (0)