WebSocket - internal implementation type representing the socketpublic interface WSTransfer<WebSocket>
context in your own Contexts.ProviderWebSocket open(String url, JSONCall callback)
callback object should
have mostly empty values: JSONCall.isDoOutput() should be
false and thus there should be no JSONCall.getMessage().
The method of connection JSONCall.getMethod() is "WebSocket".
Once the connection is open call notifySuccess(null).
When the server sends some data then, pass them to
notifySuccess method
as well. If there is an error call JSONCall.notifyError(java.lang.Throwable).url - the URL to connect tocallback - a way to provide results back to the clientvoid send(WebSocket socket, JSONCall data)
data parameter is JSONCall.getMessage(),
rest can be ignored.socket - internal representation of the socketdata - the message to be sentvoid close(WebSocket socket)
socket - internal representation of the socketCopyright © 2014 NetBeans. All Rights Reserved.