I have encountered an error and I have no clue what it means. This seams to be the offending code, I checked the docs and I don’t understand why this would not work but throw an error.
InvalidStateError: not loaded
this.consumerTransport = this.device.createRecvTransport(this.consumerParams);
this.consumerTransport.on('connect', async ({ dtlsParameters }, callback) => {
// connect
await this.socket.emit('transportConsumeInit', {
dtlsParameters,
})
callback()
});``