I've been trying to implement WebSockets and I need to use public void onMessage(ByteBuffer message)
But by default it considers public void onMessage(String message). and since it's an abstract method I have to implement this in my subclass.
How do I direct it to use onMessage with byteBuffer and not the string one?
Answer: Realised it is based on what data server sends, so issue is closed now.
I've been trying to implement WebSockets and I need to use public void onMessage(ByteBuffer message) But by default it considers public void onMessage(String message). and since it's an abstract method I have to implement this in my subclass. How do I direct it to use onMessage with byteBuffer and not the string one?
Answer: Realised it is based on what data server sends, so issue is closed now.