Skip to main content
@smokeballdev/smokeball-client-sdk

Interface: Api

Entry point for firm to Smokeball.

Methods

get()

get(): Promise<Firm>
Gets the firm associated with the current context.

Returns

Promise<Firm> the firm associated with the current context.

Example


observe()

observe(callback): void
Creates a subscription for the firm associated with the current context. Only one subscription will be made per session. Regardless of how many times this function is called, the last registered callback will be used.

Parameters

callback
(firm) => void the function to execute when a change is made to firm(s) in Smokeball.

Returns

void

Example


update()

update(request): Promise<Firm>
Updates the firm associated with the current context.

Parameters

request
UpdateFirmRequest the update request.

Returns

Promise<Firm>

Example