code: public void disconnect() {
          if (isConnected()) {
              SharedObjectMessage msg = new SharedObjectMessage(name, 0, isPersistent());
              msg.addEvent(new SharedObjectEvent(Type.SERVER_DISCONNECT, null, null));
              Channel c = ((RTMPConnection) source).getChannel(3);
              c.write(msg);
              notifyDisconnect();
              initialSyncReceived = false;
          }
      }
docs: {@inheritDoc}