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
1 answer

loading socket.io-client.socket.io.js fails when using ssl

I have developed a node js application which works fine as long as use http. Now I need to upgrade the code too be able to work ssl and I am having problems to load the socket.io-client/socket.io.js file. (The rest is working fine. I installed the…
0
votes
0 answers

socketException: Connection reset in react native then app freezes

I have got an issue that makes the app freeze, As I reload the app it will work normally. I tried debugging and it happens in these cases: If I put the app in the background and use other apps. Lock the phone, unlock it, and back to the app…
0
votes
1 answer

Socket.io Server does not answer clients

On the server, I changed the transport to websocket, and used socket.io-client.js as the client, and it…
Arjun Nurdin
  • 13
  • 1
  • 10
0
votes
1 answer

Loading webrtc-client module with fingerprint sensor, make fingerprint sensors system (.so) file not finding

I am working on adding OTG fingerprint sensor implementation with webrtc-client project. Fingerprint sensor library has .so file which I need to add into jniLibs folder. And I have converted webrtc-client android project to library and trying to…
0
votes
0 answers

Unable to connect to node.js server from Android client using socket.io

I have implemented every step mentioned in the socket.io website but not sure why I am unable to connect to the Node.js server from my Android application. Below are the files I have used for implementation. Package.json { "name": "First…
abhinay
  • 3
  • 6
0
votes
0 answers

Java CountDownLatch wait for async callback

First of all, I'm a complete newbie in Java. What I want to achieve is wait for async results before I return them. MainActivity.java: ... private SendTransport.Listener sendTransportListener = new SendTransport.Listener() { @Override …
Footniko
  • 2,682
  • 2
  • 27
  • 36
0
votes
2 answers

Java socket.io wait for callback

My Activity code: public String getValue(JSONObject data) { String value; socket.emit("request", data, new Ack() { @Override public void call(Object... args) { value = (String) args[1]; // how to wait for this…
Footniko
  • 2,682
  • 2
  • 27
  • 36
0
votes
0 answers

How to make Sockets secured in Java backend?

I'm new to sockets, I'm trying to make connection of secured sockets. It is working fine with Http But I'm failing continuously with Https, How can I make a secured socket connection in java? try{ requestSocket = IO.socket(REQUEST_SOC_URL); …
0
votes
0 answers

Java client not connecting to NodeJS Socket.IO server

I'm trying to implement a simple socket.io client in my android application to connect to a server hosted on my computer. With some examples I've managed to connect with the android app to https://socket-io-chat.now.sh/, so I think the code should…
0
votes
1 answer

How can i listen to custom service's event in socket.io android without feathers-client

I have use featherjs in server-side, unfortunately , feathers-client in android not supported anymore.So , i think i need to use only socket.io-client to listen to feathers serivce event, but i don't know how to do it
0
votes
0 answers

How to listen to a tcp port using socket io?

I have an application which is writing on a port(TCP message using spring-integration tcp-outbound-channel on a particular port). I want to write a listener which will listen and validate the message coming on this port. One of the recommendation is…
RAHUL ROY
  • 126
  • 2
  • 13
0
votes
1 answer

Calculator AWT - Sum 2 numbers - GUI Interface - Server/Client

I have the following code that needs to do a simple math SUM for 2 numbers. Server Code: public class Server { private ServerSocket server; private Socket connection; public static void main(String[] args) throws IOException { try ( …
Vlad Murea
  • 11
  • 3
0
votes
1 answer

Events not firing? Using java socket.io client & netty-socketio on server

I know the client and server are connecting because my connect/disconnect events are firing. However, my custom events are not. I am using socket.io java client, and netty-socketio on the server. I usually use the socket.io javascript library which…
wizeOnes
  • 119
  • 16
0
votes
1 answer

After closing the screen, android closes socket connection in few minutes

I am implementing a real time taxi-hailing application with socket-io and in the implementation of driver application, we are dealing with socket problem. Even if the user closes the device screen, i just want to keep socket connection alive. Is…
0
votes
0 answers

In socket.io, socket.disconnect() to a single socket, disconnect all socket connection

I have a browser, which connects to server using socket.io with transport as websocket only. I validate all socket connecting to my server, using simple logic and is working fine. Update-1 Now the problem occur when Internet fluctuates, browser is…