Chat Federation WIP: code cleaning.

This commit is contained in:
John Livingston
2023-05-23 17:46:47 +02:00
parent 8fe48a068f
commit 627b45ffc7
4 changed files with 90 additions and 132 deletions

View File

@ -0,0 +1,12 @@
# mod_websocket_s2s_peertubelivechat
This module is part of peertube-plugin-livechat, and is under the same LICENSE.
This module implements [XEP-0468: WebSocket S2S](https://xmpp.org/extensions/xep-0468.html).
It is not 100% usable in a non-Peertube Prosody. Here is what is missing:
* should be merged with mod_websocket (by adding an option to enable Websocket S2S)
* should listen on the same HTTP endpoint than mob_websocket
* missing remote Websocket S2S discovering (discovery is done by a `discover-websocket-s2s` hook, with a custom implementation in mod_s2s_peertubelivechat)
* should use net.websocket instead of duplicating code (not possible with the current Prosody code, as net.websocket.connect expect to remain the connection listener)