How do i enable websockets in xmpp openfire server - websocket

I am developing real time chat application in my website.For that i want to use websockets for communication.And i am using openfire server but i dont know how to enable websockets in openfire server . Any ideas.
Thanks in advance

If you use OpenFire 3.10 use this sources for compile a fixed version of websocket.
https://code.google.com/p/openfire-websockets/source/detail?r=21
(not tested, trying to find a way to compile it under linux)
You can download websocket build here;
https://code.google.com/p/openfire-websockets/downloads/list
Load plugin in you Web Admin Interface (.war is same of .jar)
Google a little bit and you can found some informations for OpenFire 3.7.2 and compatible version of websockets.

Igniterealtime Anounces a plugin
Openfire WebSocket Plugin Readme
Please go through the above readme

Related

Implement WebSocket and LWSWS servers in same executable with libwebsockets

I'm trying to create a Web Socket server and a LWSWS web server provided in libwebsockets v2.0.
I just need a simple web server to provide HTML/JS/CSS content to the browser and a web sockets server to work with the Web front-end.
The only doc available is really short and doesn't say anything about that, as v2.0 is brand new. The libwebsockets GitHub recommand to refer to the LWSWS example in the project, but the procedures to implement and run a server for LWSWS and a Web Socket server are not matching (the first using libuv event loop, the other using built-in libwebsockets functions).
Maybe the only solution is implementing my own http callback but I want to make sure that there's no faster solution using LWSWS.
I managed to compile and run a LWSWS server from libwebsockets, embedding an HTTP Server and a Web Socket server in the same executable.
Guidelines
Use code from example lwsws/main.c, and copy .h and .c depencies to compile an LWSWS server
Use code from example plugin-standalone/protocol_example_standalone.c to compile your protocol plugin .dll
Create a quick server and vhost configuration from lwsws/etc-lwsws-conf.d-localhost-EXAMPLE and lwsws/etc-lwsws-conf-EXAMPLE
Put compiled plugins and libs at the right spot and enjoy your server
In case it might help !

How to setup Xampp server for android Chatting App?

The best way would be to use XMPP libraries such as aSmack or the newer Smack. i will need an XMPP server such as OpenFire or eJabberd running on some Hosting before you can build a mobile app.But how it work and implement?.because i have android knowledge.but no any idea of server.
you should use ejabberd in my opinion.Download ejabberd and install it for configuration check this link http://docs.ejabberd.im/admin/guide/configuration/
ejabberd is an open source Jabber/XMPP server.
Ejabberd is a Rock Solid, Massively Scalable, Infinitely Extensible XMPP Server.
for more details check these links-
https://www.process-one.net/en/ejabberd/
https://blog.process-one.net/ejabberd-massive-scalability-1node-2-million-concurrent-users/

Openfire websocket configuration

Hi I have installed Openfire and the plugin for websocket from the link (https://code.google.com/p/openfire-websockets/downloads/detail?name=websockets-0.0.0.6.zip&can=2&q=) When I install the the plugin, the plugin is available in the openfire plugin's. But the question is how do I configure, and how to access the WS.
Cheers
Sunil
For checking WebSocket
Socket = new WebSocket("ws://domain:7070/ws/",'xmpp')
Don't forget for 'xmpp' protocol
please go through the installation steps given in the link here openfire-server-configuration. It might prove helpful to install and configure your plugins.
Once you've installed the plugin (make sure you restart the server), you should be able to reach the Websocket connector via ws://domain:port/ws/, port usually being 7070. Check the Server > Server Settings > HTTP Binding menu in the web interface if you're not sure.
However you don't get to configure much. The Websocket plugin is very minimalistic, it will basically reuse the existing BOSH (plain HTTP) configuration, but that's usually enough.

Setting up Server Side and Client Side for Google Cloud Messaging

I am trying to make 2 applications which uses Google Cloud Messaging.
My goal is to make a one application Android IBM Worklight which can receive Push notifications (CLIENT-SIDE) and another application a Tomcat Server Java Servlet (SERVER-SIDE).
However, I have absolutely no experience in using Google Cloud Messaging and it is my first time using Android IBM Worklight as client-side.
So I was hoping someone could point me in the right direction that I so could have 1st application using tomcat server sending the Push notifications (SERVER-SIDE) and another application using IBM Worklight as (CLIENT-SIDE) to receive the push notification.
I have been finding tutorials regarding this but I am stuck at implementation.
This tutorial link gave me an idea on how to do server side since i am using tomcat server. However the client-side is code is not what I am looking for since I am using IBM Worklight inside.
Another tutorial link show me how the push notification works at IBM Worklight for both client and server side. However, as mention earlier my server side is Tomcat server at Eclipse thus I think that I can't using this tutorial for server side.
As for client side, I think can use this tutorial since it is IBM Worklight however it is not using Google Cloud Messaging.
I would appreciate someone help me..Thanks :)
The second tutorial has the information you need. If you have your Worklight server set up on Tomcat, just follow the tutorial and deploy the push adapter to that server.

PJSIP server development

When using pjsip technology to develop a server, the official web site is a bit difficult to use when looking for a way to develop a server.
It has an introduction on how to develop a client application with the library, but not how to implement a server.
Any one direct me to some reference documentation or blob posts or other web site that can help show me how to create a pjsip based server?
You can find a sample SIP proxy implementation inside the PJSIP source code: http://trac.pjsip.org/repos/browser/pjproject/trunk/pjsip-apps/src/samples/stateful_proxy.c and http://trac.pjsip.org/repos/browser/pjproject/trunk/pjsip-apps/src/samples/stateless_proxy.c
Asterisk SCF module uses pjsip. Maybe that will shed some light
More information, visit
https://wiki.asterisk.org/wiki/display/TOP/How+to+add+a+PJSIP+module+to+Asterisk+SCF
https://wiki.asterisk.org/wiki/display/AST/SIP+Stack+Research
I think I found it. PJSUA utility in pjproject tree acts as SIP server, Zoiper Softphone successfully connects and makes calls.

Resources