Skip to content Skip to sidebar Skip to footer

Getting Socket.io Response In Android Client, But Can't Understand How To Implement The Response In Recycler Adapter

I'm working on a real-time chatting android application where I need to connect socket.io for real-time response. I followed this tutorial:https://socket.io/blog/native-socket-io-a

Solution 1:

Got it. Use Model class as JSONOBject by reflection. Add this code n the Emitter.Lister response

        Gson gson= new Gson();
        socketData=gson.fromJson(abc.toString(),SocketData.class);

Post a Comment for "Getting Socket.io Response In Android Client, But Can't Understand How To Implement The Response In Recycler Adapter"