JavaScript is disabled on your browser.
Skip navigation links
Overview
Class
Tree
Deprecated
Index
Search
Help
com.codename1.io
WebSocket
CloseHandler
Contents
Description
Method Summary
Method Details
onClose(WebSocket, int, String)
Hide sidebar
Show sidebar
Interface WebSocket.CloseHandler
Enclosing class:
WebSocket
public static interface
WebSocket.CloseHandler
Handler for the close event.
Method Summary
All Methods
Instance Methods
Abstract Methods
Modifier and Type
Method
Description
void
onClose
(
WebSocket
ws, int statusCode,
String
reason)
Called once when the connection closes.
Method Details
onClose
void
onClose
(
WebSocket
ws, int statusCode,
String
reason)
Called once when the connection closes.
Parameters:
ws
- the socket that closed
statusCode
- the RFC 6455 close status code (1000 = normal, etc.)
reason
- the human-readable reason, or empty string