Closed kelvinpdihardja closed 2 years ago
@kelvinpdihardja hi! In your example above, there is no handler for the "hello" event, is that normal?
mSocket.on("hello", new Emitter.Listener() {
@Override
public void call(Object... args) {
Log.v("asd", args[0]);
}
});
Closed due to inactivity, please reopen if needed.
Im having difficulties for trying to listening to events when emitted by the server, heres my native android code
`try { IO.setDefaultOkHttpCallFactory(okHttpClient); IO.setDefaultOkHttpWebSocketFactory(okHttpClientSocket); IO.Options opts = new IO.Options(); opts.transports = new String[]{WebSocket.NAME}; opts.reconnection = true; opts.reconnectionAttempts = Integer.MAX_VALUE; opts.secure = true; opts.forceNew = false; opts.multiplex = true; opts.upgrade = true; opts.webSocketFactory = okHttpClientSocket; opts.callFactory = okHttpClient;
heres emit code in my node JS
io.on("connection", (socket) => { socket.emit("hello", "world"); });
"Socket.EVENT_CONNECT" successfully triggered, but the rest of event didnt even triggered, has anyone had same issues?