Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
@@ -55,7 +55,7 @@ export async function sendSignal(channel: RealtimeChannel, msg: SignalMessage) {
|
|||||||
const response = await channel.send({ type: 'broadcast', event: 'signal', payload: msg });
|
const response = await channel.send({ type: 'broadcast', event: 'signal', payload: msg });
|
||||||
if (response !== 'ok') {
|
if (response !== 'ok') {
|
||||||
const restResponse = await channel.httpSend('signal', msg);
|
const restResponse = await channel.httpSend('signal', msg);
|
||||||
if (!restResponse.success) throw new Error(restResponse.error);
|
if (restResponse.success === false) throw new Error(restResponse.error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user