- Preparing search index...
- The search index is not available
moonpiebot
Function createStreamCompanionWebSocketConnection
- createStreamCompanionWebSocketConnection(streamCompanionUrl: string, logger: Readonly<Logger>): StreamCompanionConnection
-
Parameters
-
streamCompanionUrl: string
-
logger: Readonly<Logger>
This method will setup an infinite loop that will continuously try to connect to StreamCompanion.
Returns
A function that will if there is a connection and data available return that data. Otherwise it will just return undefined.