socketio / socket.io-client-java

Full-featured Socket.IO Client Library for Java, which is compatible with Socket.IO v1.0 and later.
https://socketio.github.io/socket.io-client-java/installation.html
Other
5.31k stars 969 forks source link

Cannot Received Socket Manager EVENT_PING On Android Library #734

Open YovanggaAnandhika opened 1 year ago

YovanggaAnandhika commented 1 year ago

Describe the bug Cannot Received Event socket manager "ping" on Android

To Reproduce

Socket.IO server Run On Nodejs version: 4.5.2

Server

import { Server } from "socket.io";

const io = new Server(3000, {});

io.on("connection", (socket) => {
  console.log(`connect ${socket.id}`);

  socket.on("disconnect", () => {
    console.log(`disconnect ${socket.id}`);
  });
});

Socket.IO client version: 2.1.0 Android library

Client

Socket.io().on(EVENT_PING) {
    Log.d(LOGGER PACKET, "ping")
}

Expected behavior The Socket Io Client Run On Service Class and Foreground Service. with Wakelock Particial

Platform:

Additional context Socket IO Client run successfully. but no Received Ping Like Nodejs Client on ping Event in version 1.0.1 Event ping is working. but version 2.1.0 not working again. please add missing features. reference Heartbeat mechanism reversal

darrachequesne commented 1 year ago

I was indeed able to reproduce the issue. Let's fix that :+1: