@blackleafteams/client-resources (0.7.17)
Published 2025-12-01 03:54:43 +00:00 by zachhandley
Installation
@blackleafteams:registry=npm install @blackleafteams/client-resources@0.7.17"@blackleafteams/client-resources": "0.7.17"About this package
Overview
Package allow to create a client to interact with running platform.
Usage
import clientResources from '@blackleafteams/client-resources'
import core, { Client } from '@blackleafteams/core'
// ...
const token = ... // Token obtained somehow.
const connection: Client = await (await clientResources()).function.GetClient(token, transactorUrl)
// Now client is usable
// Use close, to shutdown connection.
await connection.close()
Node JS
For NodeJS environment it is required to configure ClientSocketFactory using 'ws' package.
// We need to override default WebSocket factory with 'ws' one.
setMetadata(client.metadata.ClientSocketFactory, (url) => new WebSocket(url))
const connection: Client = await (await clientResources()).function.GetClient(token, transactorUrl)
...
Dependencies
Dependencies
| ID | Version |
|---|---|
| @blackleafteams/analytics | 0.7.17 |
| @blackleafteams/client | 0.7.17 |
| @blackleafteams/core | 0.7.22 |
| @blackleafteams/platform | 0.7.18 |
| @blackleafteams/rpc | 0.7.17 |
| snappyjs | ^0.7.0 |
Development dependencies
| ID | Version |
|---|---|
| @blackleafteams/platform-rig | 0.7.19 |
| @types/jest | ^29.5.5 |
| @types/node | ^22.15.29 |
| @types/snappyjs | ^0.7.1 |
| @types/ws | ^8.5.12 |
| @typescript-eslint/eslint-plugin | ^6.21.0 |
| @typescript-eslint/parser | ^6.21.0 |
| eslint | ^8.54.0 |
| eslint-config-standard-with-typescript | ^40.0.0 |
| eslint-plugin-import | ^2.26.0 |
| eslint-plugin-n | ^15.4.0 |
| eslint-plugin-promise | ^6.1.1 |
| eslint-plugin-svelte | ^2.35.1 |
| jest | ^29.7.0 |
| prettier | ^3.1.0 |
| ts-jest | ^29.1.1 |
| typescript | ^5.9.3 |
| ws | ^8.18.2 |
Details
2025-12-01 03:54:43 +00:00
Assets (1)
Versions (1)
View all
npm
0
Anticrm Platform Contributors
EPL-2.0
latest
48 KiB
client-resources-0.7.17.tgz
48 KiB
0.7.17
2025-12-01