My name is Gurkan Erdogdu and I am the CTO of the MechSoft Mechanical and Software Solutions. I have been active in the Java and Java EE platform more than 10 years. Strong supporter for the Free and Open Source Software, and actively participating within the Open Source based foundations like, Apache Software Foundation, JBoss, and recently Open Web Foundation. I am the member of the Apache Software Foundation and Open Web Foundation. Writing blog at gurkanerdogdu@blogspot.com. Gurkan has posted 24 posts at DZone. View Full User Profile

Using Siwpas 2.0.0 Web Socket Protocol

07.31.2011
| 1129 views |
  • submit to reddit

This article shows how to configure and use Siwpas Web Socket Protocol using a sample web socket web application.

Requirements:

  • Siwpas 2.0.0, can be downloaded from http://siwpas.mechsoft.com.tr/. To use the Siwpas, you also have to get a trial license from Get Siwpas Trial License
  • Firefox Aurora from http://www.mozilla.com/en-US/firefox/channel/ that supports web socket protocol latest version. In fact, you can use any client that suppors the web socket protocol (Currently Siwpas implements “draft-ietf-hybi-thewebsocketprotocol-07”.)
  • Web socket sample application can be downloaded from here. This sample web application provides two applications:
    • Basic Echo Server to echo your input
    • Basic Chat Server. This chat server client code is written via getting code from HTML5 Labs Chat Demo

Installation:

  • Unzip the Siwpas into your system (C:\Siwpas-2.0.0). We call it SIWPAS_HOME
  • Enable Web Socket Connector
    • Open "SIWPAS_HOME/server.xml"
    • Uncomment the Web Socket Connector
  • Put trial license file "siwpas.license" into the SIWPAS_HOME/licenses folder
  • Put  sample web application archive"siwpas-websocket-sample.war" into the "SIWPAS_HOME/webapps" folder
  • Go into "SIWPAS_HOME/bin" and start the Siwpas 
    • /bin/siwpas.bat run

Open Applications:

!As you will see, Web Socket Chat Application is very fast (instantly see the messages that you write)!

Web Socket Documentation

 You can read more about Siwpas Web Socket Protocol Support from Siwpas documentation.

More Information


 Enjoy!
Published at DZone with permission of its author, Gurkan Erdogdu.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)