*: bus, calendar, hr_attendance, iap_mail, im_livechat, project, snailmail,
snailmail_account, survey, web, web_editor, website_livechat.
This commit is part of the websocket integration in Odoo.
This bus service now communicates with a shared worker in order to provide
a single websocket connection for multiple tabs. It is designed to
be used as a websocket except that events are slightly different,
re-connection is handled automatically. If the browser does not support shared
worker (Safari), the service fallback on a simple web worker.
Available events are:
- connect : fired upon a successful connection.
- disconnect : fired upon reception of the websocket close event.
The close code and reason are given to the listeners callback.
- reconnect : fired upon a successful re-connection.
- reconnecting : triggered when the worker starts to try reconnecting.
- notification : fired upon the reception of notifications.
Since multiple tabs are now handled by a worker, the cross_tab bus is no longer
required and has been removed.
Part-of: odoo/odoo#75510
32 lines
952 B
Python
32 lines
952 B
Python
{
|
|
'name' : 'IM Bus',
|
|
'version': '1.0',
|
|
'category': 'Hidden',
|
|
'description': "Instant Messaging Bus allow you to send messages to users, in live.",
|
|
'depends': ['base', 'web'],
|
|
'data': [
|
|
'security/ir.model.access.csv',
|
|
],
|
|
'installable': True,
|
|
'assets': {
|
|
'web.assets_common': [
|
|
'bus/static/src/*.js',
|
|
'bus/static/src/services/**/*.js',
|
|
'bus/static/src/workers/websocket_worker.js',
|
|
'bus/static/src/workers/websocket_worker_utils.js',
|
|
],
|
|
'web.qunit_suite_tests': [
|
|
'bus/static/tests/**/*.js',
|
|
],
|
|
'web.qunit_mobile_suite_tests': [
|
|
'bus/static/tests/helpers/*.js',
|
|
],
|
|
'bus.websocket_worker_assets': [
|
|
'web/static/src/legacy/js/promise_extension.js',
|
|
'web/static/src/boot.js',
|
|
'bus/static/src/workers/*',
|
|
],
|
|
},
|
|
'license': 'LGPL-3',
|
|
}
|