Example usage for com.google.gwt.websocket.client WebSocket CLOSING

List of usage examples for com.google.gwt.websocket.client WebSocket CLOSING

Introduction

In this page you can find the example usage for com.google.gwt.websocket.client WebSocket CLOSING.

Prototype

int CLOSING

To view the source code for com.google.gwt.websocket.client WebSocket CLOSING.

Click Source Link

Document

The connection is going through the closing handshake, or the close() method has been invoked.

Usage

From source file:org.rest.client.activity.SocketActivity.java

License:Apache License

@Override
public void disconnect() {
    if (socket == null)
        return;/*from w w  w .  j ava2 s .  com*/
    view.setConnectionStatus(WebSocket.CLOSING);
    socket.close();
    socket = null;
}