Skip to content

Commit

Permalink
[ADD] SFU server
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ThanhDodeurOdoo authored and seb-odoo committed Dec 5, 2023
1 parent 1fe1dd5 commit 5c3c459
Show file tree
Hide file tree
Showing 31 changed files with 11,787 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
// Based on Odoo's .eslintrc.js
{
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:node/recommended"],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"env": {
"node": true,
"browser": false,
"es2022": true
},
"overrides": [
{
"files": ["tests/utils/*.js", "tests/*.js"],
"plugins": ["jest", "import"],
"env": {
"jest": true,
"jest/globals": true
},
"extends": ["plugin:jest/recommended"]
},
{
"files": ["src/client.js"],
"env": {
"browser": true,
"node": false
}
},
{
"files": ["src/shared/*.js"],
"env": {
"browser": true,
"node": true
}
}
],
"ignorePatterns": "dist/*",
"rules": {
"prettier/prettier": ["error", {
"tabWidth": 4,
"semi": true,
"singleQuote": false,
"printWidth": 100,
"endOfLine": "auto"
}],
"node/no-unsupported-features/es-syntax": "off",
"node/no-missing-import": "off",
"no-console": "error",
"no-undef": "error",
"no-restricted-globals": ["error", "event", "self"],
"no-const-assign": ["error"],
"no-debugger": ["error"],
"no-dupe-class-members": ["error"],
"no-dupe-keys": ["error"],
"no-dupe-args": ["error"],
"no-dupe-else-if": ["error"],
"no-unsafe-negation": ["error"],
"no-duplicate-imports": ["error"],
"valid-typeof": ["error"],
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false, "caughtErrors": "all" }],
"curly": ["error", "all"],
"no-restricted-syntax": ["error", "PrivateIdentifier"],
"prefer-const": ["error", {
"destructuring": "all",
"ignoreReadBeforeAssign": true
}]
}
}
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules

# made with jest coverage
coverage
/bundle

# whitelist
!.eslintrc.json
!package.json
!jsconfig.json
Loading

0 comments on commit 5c3c459

Please sign in to comment.