TooTallNate / Java-WebSocket

A barebones WebSocket client and server implementation written in 100% Java.
http://tootallnate.github.io/Java-WebSocket
MIT License
10.47k stars 2.57k forks source link

OnMessage Callback #1299

Closed Susheelabhat closed 1 year ago

Susheelabhat commented 1 year ago

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.