access data in our main activity By socket communication using primus-android library

37 Views Asked by At

I m using primus-android (https://github.com/cine-io/primus-android) to communicate with a socket. In the library, I m getting string data. But I can't get it in my java file.

1

There are 1 best solutions below

0
shridhar choudhari On

Instead of calling datacallback as mentioned in the document of Github file, by using WebSocket call back, access on string available function, which will lead to access data coming in the socket.