class SocketIoSocket extends Emitter {

    public void disconnect(boolean close) {
        if (mConnected) {
            if (close) {
                mClient.disconnect();
            } else {
                final Packet packet = new Packet();
                packet.type = Parser.DISCONNECT;
                sendPacket(packet);

                onClose("server namespace disconnect");
            }
        }
    }

      SocketIoSocket(SocketIoNamespaceImpl namespace, SocketIoClient client);

}