@actuallab/rpc 12.3.60 → 12.3.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2456,6 +2456,13 @@ var RpcPeer = class {
2456
2456
  );
2457
2457
  this._sendWireData(wireData);
2458
2458
  }
2459
+ /** Close the current WS connection without disposing the peer. The
2460
+ * `conn.closed` handler flips state to `Disconnected`; for
2461
+ * `RpcClientPeer` the run loop then iterates and reopens. The peer
2462
+ * stays in the hub and all client proxies bound to it remain valid. */
2463
+ disconnect() {
2464
+ this._connection?.close();
2465
+ }
2459
2466
  close() {
2460
2467
  infoLog?.log(`'${this.ref}': Stopping`);
2461
2468
  this.remoteObjects.disconnectAll();