- Preparing search index...
- The search index is not available
Viam SDK
Interface ResponseStream<T>
Methods
cancel
- cancel(): void
-
Returns void
on
- on(type: "data", handler: ((message: T) => void)): ResponseStream<T>
-
Parameters
-
type: "data"
-
handler: ((message: T) => void)
-
- (message: T): void
-
Returns void
- on(type: "end", handler: ((status?: Status) => void)): ResponseStream<T>
-
Parameters
-
type: "end"
-
handler: ((status?: Status) => void)
-
- (status?: Status): void
-
Returns void
- on(type: "status", handler: ((status: Status) => void)): ResponseStream<T>
-
Parameters
-
type: "status"
-
handler: ((status: Status) => void)
-
- (status: Status): void
-
Returns void