Interface WebSocketEventSink
public interface WebSocketEventSink
Internal sink used by
WebSocketImpl subclasses to push lifecycle and
message events back into the public com.codename1.io.WebSocket facade.
Platform implementations call sink().onXxx(...) from whichever thread
the native layer hands them the event on; the public facade is responsible
for routing into the user-registered handlers.-
Method Summary
Modifier and TypeMethodDescriptionvoidonBinaryMessage(byte[] message) voidvoidvoidvoidonTextMessage(String message)
-
Method Details
-
onConnect
void onConnect() -
onTextMessage
-
onBinaryMessage
void onBinaryMessage(byte[] message) -
onClose
-
onError
-