Add textsecure.MessageReceiver
Encapsulate the websocket resources and socket setup process in a friendly OO class. The MessageReceiver constructor expects an instance of EventTarget on which to fire message events asynchronously. The provider of the EventTarget can then add/remove listeners as desired.
This commit is contained in:
parent
bf2bf4cfd9
commit
36b1e87214
5 changed files with 220 additions and 27 deletions
|
@ -56,6 +56,7 @@ module.exports = function(grunt) {
|
|||
'libtextsecure/helpers.js',
|
||||
'libtextsecure/stringview.js',
|
||||
'libtextsecure/api.js',
|
||||
'libtextsecure/message_receiver.js',
|
||||
'libtextsecure/sendmessage.js',
|
||||
],
|
||||
dest: 'js/libtextsecure.js',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue