peertube-plugin-livechat/prosody-modules/mod_websocket_s2s_peertubelivechat
John Livingston 3b8042ebe2
Fix timer.
2023-05-31 16:52:52 +02:00
..
mod_websocket_s2s_peertubelivechat.lua Fix timer. 2023-05-31 16:52:52 +02:00
README.md Chat Federation WIP: code cleaning. 2023-05-31 16:52:49 +02:00

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.

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)