Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Websocket connection gives error message

$
0
0

Hi Friends, I am developing and android chat application using alloy framework, I would like to make a websocket connection with our server to get chat messages. Our web app already using websocket connection for the same and which is done using socket.io. in my alloy code i used code like below to make websocket connection.

var io = require('socket.io')
 
 socket = io.connect('http://xxxxxx:8000', {});
 
  socket.on("msg_from", function(data) {
    alert(data);
  });
But this gives an error in Titanium console, See error below
D/HybiParser(  342): Creating frame for: 2:: op: 1 err: -1
Anyone please help me to fix this, thanks in advance

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>