2

I am looking to implement WebSocket communication via ejabberd xmpp server...

The only module that I have found so far is this repository:

ejabberd-websockets

This repository has not been updated for 4 year so I do not feel very comfortable using it.

Any alternatives or reviews on above mentioned repository?

Mickaël Rémond
  • 9,035
  • 1
  • 24
  • 44
rastko
  • 567
  • 9
  • 24

2 Answers2

5

From ejabberd 15.03 version, WebSockets are fully supported, as stated here:

ejabberd 15.03 released, with Websockets support

Mickaël Rémond
  • 9,035
  • 1
  • 24
  • 44
rastko
  • 567
  • 9
  • 24
0

You could also try node-xmpp-bosh which is a node.js based connection manager that sits in front of the XMPP server and handles BOSH and XMPP over WebSockets. The XMPP server sees all traffic as standard XMPP traffic.

I know that the BOSH part works well, but haven't tried WebSockets.

buskila
  • 260
  • 1
  • 11
  • To the person who downvoted the answer, care to explain? The question was how to make ejabberd work with XMPP over WS and the answer is just that. – buskila May 22 '15 at 05:37
  • Oleg, I haven't downvoted your answer but this might be an explanation why someone did: BOSH and WebSocket are totally different protocols. BOSH relies completely on HTTP while WebSockets use HTTP only for handshake after which it is directly dependent on TCP. – rastko May 22 '15 at 07:41
  • @rastko, I know that. The project that I linked to supports _both_ – buskila May 22 '15 at 07:42