Component your feature request relates to
Problem your feature solves? Please describe.
Currently, the only way I see to send arbitrary data through the data channel is to run everything through emitUIInteraction which runs everything throughJSON.stringify(). This makes sending arbitrary bytes through rather annoying.
Describe the solution you'd like
I'd like a function that sends a byte array ( Uint8Array.?) through the data channel without any processing.
public emitBytes(bytes: Uint8Array) {
if (!this._webRtcController.videoPlayer.isVideoReady()) {
return false;
}
this._webRtcController.emitBytes(bytes);
return true;
}
Additional context
Component your feature request relates to
Problem your feature solves? Please describe.
Currently, the only way I see to send arbitrary data through the data channel is to run everything through
emitUIInteractionwhich runs everything throughJSON.stringify(). This makes sending arbitrary bytes through rather annoying.Describe the solution you'd like
I'd like a function that sends a byte array (
Uint8Array.?) through the data channel without any processing.Additional context