class ExtensionWebSocketClient {

    public void close() {
        this.stop();

        ExtensionWebSocketListener oldListener = listener;
        listener = new ExtensionWebSocketListener(this);
        listener.useHandlersFromListener(oldListener);

        if (this.closeHandler != null) {
            this.closeHandler.handleMessage(this);
        }
    }

    public  ExtensionWebSocketClient(String sourceName);

}