Interface ExtensionWebSocket
public interface ExtensionWebSocket
A WebSocket created via the Extension API.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()This method will close the WebSocket.Register an interface that is notified when messages arrive from the server.voidsendBinaryMessage(ByteArray message) This method allows an extension to send a binary message via the WebSocket.voidsendTextMessage(String message) This method allows an extension to send a text message via the WebSocket.
- 
Method Details- 
sendTextMessageThis method allows an extension to send a text message via the WebSocket.- Parameters:
- message- The message to be sent.
 
- 
sendBinaryMessageThis method allows an extension to send a binary message via the WebSocket.- Parameters:
- message- The message to be sent.
 
- 
closevoid close()This method will close the WebSocket.
- 
registerMessageHandlerRegister an interface that is notified when messages arrive from the server.- Parameters:
- handler- An object created by the extension that implements- ExtensionWebSocketMessageHandlerinterface.
- Returns:
- The Registrationfor the handler.
 
 
-