Questions tagged [socket.io-java-client]

socket.io-java-client is an easy to use implementation of socket.io for Java.

socket.io-java-client is an easy to use implementation of socket.io for Java.

Useful links

56 questions
0
votes
0 answers

Socket.io client on android disconnecting after 5 minutes

I have implemented Socket.io client on android, I have managed to initialize the socket in an Unbounded service but the problem is it got disconnected after 5 minutes when the app is in background and phone is locked. If the app is in foreground the…
0
votes
1 answer

java.io.IOException: unknown format

I use the code below to decompress coming data that is arrived via socket.io. When decompressing data which has been sent as compressed the code below works great. (Pseudo data which is sent from Node.js: ) However when…
efkan
  • 12,991
  • 6
  • 73
  • 106
0
votes
1 answer

Socket.io Java Client getting 400 from server

I am having a node.js server deployed on OpenShift Cloud, I am using socket.io to implement a real time chat application. On my development machine it is working fine, but when I deployed it to OpenShift it is returning 400 response code to…
0
votes
1 answer

Socket.IO heartbeat not sent

I've been running a Socket.IO server (https://github.com/mrniko/netty-socketio) , communicating with a client (https://github.com/nkzawa/socket.io-client.java) that runs on an Android emulator. The emulator is hosted on the machine that runs the…
nozik
  • 307
  • 1
  • 12
0
votes
1 answer

Boolean not updated before onPostExecute runs

I have a problem with returning the result value to onPostExecute() of an onBackground() function in the Async Class of Android. What I want to do is to search for a specified contact name in a database using socket.io and then when I find it;…
Benny
  • 839
  • 16
  • 32
0
votes
1 answer

(Android) Hold a Socket.IO Connection throughout Activities

I'm basically trying to start a Socket.IO connection in one activity (The LogIn Activity) and carry that throughout the various other activities. If anyone has any idea on what would work the best in this situation that would be great. All I need is…
Lokio27
  • 23
  • 6
-1
votes
1 answer

Elaphant.io json_encode prroblems

When I try to generate json with emit, it puts ' ' at the beginning of the text. how can i overcome this problem
bedirhan
  • 11
  • 3
-1
votes
1 answer

ReferenceError: client is not defined Socket.io

How to solve this? I don't get it,,please help, thanks. And this is the error message when I run node server.js: client.on('getRelay', function (state) { ReferenceError: client is not defined var express = require ('express'); var app =…
-1
votes
1 answer

How do I use socket.io-java-client java

I designed a chat application to support a store. The chat is very important for the store because it sells and trade items, so there's lot of communication. There's two end-points, the website that contains the chat as an icon and the help desk…
notExactlyAHero
  • 353
  • 1
  • 4
  • 14
-1
votes
1 answer

Android socket.io client

I'm trying to set up a android socket.io client, but I'm having some difficulties. Right now I'm using this library:https://github.com/nkzawa/socket.io-client.java and everything is working great when we turn off the middleware. When it's turned on…
DPE
  • 218
  • 5
  • 15
1 2 3
4