Skip to content
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.

Matrix support #203

Open
LEDfan opened this issue Feb 19, 2015 · 3 comments
Open

Matrix support #203

LEDfan opened this issue Feb 19, 2015 · 3 comments

Comments

@LEDfan
Copy link
Contributor

LEDfan commented Feb 19, 2015

Ref http://matrix.org https://mailman.owncloud.org/pipermail/devel/2015-February/001062.html

@oddvar This issue is about adding matrix support to the Chat app. As I understand, matrix is something like XMPP, but instead of a TCP/IP protocol, a HTTP protocol?

If so, this could be easily integrated in the Chat app, because it's built as a multi protocol app. Currently there are two backends implemented

  • a custom very simple protocol for chatting inside ownCloud
  • XMPP (beta)

This is implemented by creating a backend class, registering it, and creating client side JS code. This is e.g. the backend class for XMPP: https://github.com/owncloud/chat/blob/master/lib/xmpp/xmpp.php . It's only needed to inform the Chat app about the protoocol. Next it's registered here: https://github.com/owncloud/chat/blob/master/appinfo/app.php#L23 . The JS code is rather simple and is located here: https://github.com/owncloud/chat/blob/master/js/src/app/backends/xmpp.js . The code which is executed by the Chat app are lines 182-272 (https://github.com/owncloud/chat/blob/master/js/src/app/backends/xmpp.js#L182-L272). It's an AngularJS factory (you don't need to know Angular IMO)

Feel free to implement it :) I can help with it of course.

@LEDfan
Copy link
Contributor Author

LEDfan commented Feb 19, 2015

cc @oddvar @jancborchardt @karlitschek (I cc'ed because you replied on the e-mail :))

@jancborchardt
Copy link
Contributor

Doesn't really seem used so far except for reference implementations. Let's go first with the protocols which are already used, like WebRTC.

@jancborchardt
Copy link
Contributor

If @oddvar can help then it might be feasible, but we first need to focus on more stability and testing of the chat app. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants