hypha-rpc 0.20.11 → 0.20.13

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.
@@ -706,12 +706,13 @@ class RPC extends _utils__WEBPACK_IMPORTED_MODULE_0__.MessageEmitter {
706
706
 
707
707
  _extract_service_info(service) {
708
708
  const config = service.config || {};
709
- config.workspace = config.workspace || self._local_workspace;
709
+ config.workspace =
710
+ config.workspace || this._local_workspace || this._connection.workspace;
710
711
  const skipContext = config.require_context;
711
712
  const serviceSchema = _get_schema(service, null, skipContext);
712
713
  const serviceInfo = {
713
714
  config: config,
714
- id: `${this._client_id}:${service["id"]}`,
715
+ id: `${config.workspace}/${this._client_id}:${service["id"]}`,
715
716
  name: service.name || service["id"],
716
717
  description: service.description || "",
717
718
  type: service.type || "generic",
@@ -4425,9 +4426,11 @@ var __webpack_exports__ = {};
4425
4426
  __webpack_require__.r(__webpack_exports__);
4426
4427
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4427
4428
  /* harmony export */ API_VERSION: () => (/* reexport safe */ _rpc_js__WEBPACK_IMPORTED_MODULE_0__.API_VERSION),
4429
+ /* harmony export */ LocalWebSocket: () => (/* binding */ LocalWebSocket),
4428
4430
  /* harmony export */ RPC: () => (/* reexport safe */ _rpc_js__WEBPACK_IMPORTED_MODULE_0__.RPC),
4429
4431
  /* harmony export */ connectToServer: () => (/* binding */ connectToServer),
4430
4432
  /* harmony export */ getRTCService: () => (/* reexport safe */ _webrtc_client_js__WEBPACK_IMPORTED_MODULE_3__.getRTCService),
4433
+ /* harmony export */ loadRequirements: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_1__.loadRequirements),
4431
4434
  /* harmony export */ login: () => (/* binding */ login),
4432
4435
  /* harmony export */ registerRTCService: () => (/* reexport safe */ _webrtc_client_js__WEBPACK_IMPORTED_MODULE_3__.registerRTCService),
4433
4436
  /* harmony export */ schemaFunction: () => (/* reexport safe */ _utils_schema_js__WEBPACK_IMPORTED_MODULE_2__.schemaFunction),
@@ -4445,6 +4448,7 @@ __webpack_require__.r(__webpack_exports__);
4445
4448
 
4446
4449
 
4447
4450
 
4451
+
4448
4452
  const MAX_RETRY = 1000000;
4449
4453
 
4450
4454
  class WebsocketRPCConnection {