B24Hook (Webhook) is not safe for client-side use — keep and use it only on the server
Usage
get isInit(): boolean
Indicates whether the data is initialized. Similar function in BX24.js.
Example
Example.ts
import { B24Hook, LoggerFactory } from '@bitrix24/b24jssdk'
// Define the dev mode
const devMode = typeof import.meta !== 'undefined' && (import.meta.env?.DEV || import.meta.dev)
const $logger = LoggerFactory.createForBrowser('MyApp', devMode)
const $b24 = B24Hook.fromWebhookUrl('https://your_domain.bitrix24.com/rest/1/xxxx/')
$logger.info('isInit', { isInit: $b24.isInit }) // true
Next Steps
Core API methods:
- callMethod() — Call any REST API method
- callBatch() — Batch execution of up to 50 commands
Working with lists:
- callFastListMethod() — Automatic retrieval of all list pages
- fetchListMethod() — Incremental loading of large lists via generator
Advanced scenarios:
- callBatchByChunk() — Batch execution of any number of commands with automatic chunking