Interface SendingInterceptor
- All Known Implementing Classes:
MetricsSendingInterceptor
Intercepts text and binary messages sent from the
WebSocketConnectionBase
connection.-
Method Summary
Modifier and TypeMethodDescriptionvoidonSend(io.vertx.core.buffer.Buffer binaryMessage) Intercept sent binary messages, corresponds to theWebSocketConnectionBase.sendBinary(Buffer)method.voidIntercept sent text messages, corresponds to theWebSocketConnectionBase.sendText(String)method.
-
Method Details
-
onSend
Intercept sent text messages, corresponds to theWebSocketConnectionBase.sendText(String)method.- Parameters:
textMessage- sent text message
-
onSend
void onSend(io.vertx.core.buffer.Buffer binaryMessage) Intercept sent binary messages, corresponds to theWebSocketConnectionBase.sendBinary(Buffer)method.- Parameters:
binaryMessage- sent binary message
-