5 Replies Latest reply on Aug 30, 2013 10:56 AM by Clebert Suconic

    Using stomp.js with jboss-eap-6.1.0.Alpha

    execretor Newbie

      I have another problem with stomp.js library(http://jmesnil.net/stomp-websocket/doc/)

       

      I use this client code:

       

       

      <html>

      <script type="text/javascript" src="stomp.js" ></script>

      <script type="text/javascript">

      function createStompClient()

      {

      var stomp = Stomp.client("ws://localhost:61614/stomp");

       

      stomp.debug = function(str) {

      alert("Debug  " + str)

      }

       

      error_callback = function(error) {

      alert(error);

      }

       

      subscribe_callback = function(message) {

      alert(message);

      }

       

       

      connect_callback = function() {

      stomp.subscribe("/alarms/queue", subscribe_callback);

      }

       

       

      stomp.connect("USXXXX", "PSXXXX", connect_callback, error_callback);

      }

      </script>

      <body onload="createStompClient()">

       

      </body>

      </html>

       

       

      With Opera browser, I  have this workflow :

      -Opening websocket

      -Websocket opened

      -Send

         Connect

          accept-version:1.1,1.0

          heart-beat:10000,10000

          login:USXXXX

          passcode:PSXXXX

      -got data length 68

      -ERROR

      version:1.0,1.1

      content-length:43

       

      Supported protocol versions are 1.0 and 1.1

       

      (Nothing in jboss console)

       

       

      With Firefox browser, this workflow

      -Opening websocket

      (In Jboss console this message after  some seconds:  Connection failure has been detected: Did not receive data....)

       

       

      How can I do for use stomp client with websockets?