Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Received Socket Manager EVENT_PING On Android Library #4743

Closed
YovanggaAnandhika opened this issue Mar 8, 2023 · 1 comment
Closed

Comments

@YovanggaAnandhika
Copy link

YovanggaAnandhika commented Mar 8, 2023

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:

  • Device: [e.g. Samsung M23]
  • OS: [e.g. Android 13, API 33]

gradle module

    implementation ('io.socket:socket.io-client:2.1.0') {
           exclude group: 'org.json', module: 'json'
     }

Additional context
Socket IO Client run successfully. but no Received Ping Like Nodejs Client on ping Event

@darrachequesne darrachequesne transferred this issue from socketio/socket.io Jun 20, 2023
@darrachequesne darrachequesne transferred this issue from socketio/socket.io-client-java Jun 20, 2023
@darrachequesne
Copy link
Member

Closed in favor of socketio/socket.io-client-java#734.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants