Function: getNormalisedTopicRequests()
ts
function getNormalisedTopicRequests(wsTopicRequests: WSTopicRequestOrStringTopic<WSTopic, any>[]): WSTopicRequest<WSTopic, any>[];Convert string topics to objects with topic and an undefined payload. Existing topic objects are returned unchanged.
Parameters
| Parameter | Type |
|---|---|
wsTopicRequests | WSTopicRequestOrStringTopic<WSTopic, any>[] |
Returns
WSTopicRequest<WSTopic, any>[]