Doc autogenerated from onflow/sdk/src/transport/subscribe/subscribe-raw.ts
subscribeRaw
Subscribe to a topic without decoding the data.
Import
_10import { subscribeRaw } from "@onflow/sdk"
Parameters
options
- Type:
SubscribeRawParams
_10export type SubscribeRawParams<T extends SubscriptionTopic> = {_10 topic: T_10 args: SubscriptionArgs<T>_10 onData: (data: RawSubscriptionData<T>) => void_10 onError: (error: Error) => void_10}
opts
(optional)
- Type:
SdkTransport;
- Description: - Additional options for the subscription.
Returns
object