You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RTCDataChannel.send accepts string | Blob | ArrayBuffer | ArrayBufferView but because the .send method is declared as multiple overrides you have to work out the type of the argument before you invoke the method, even though you don't actually do anything to the data before sending:
Code that should compile but doesn't
Reason
RTCDataChannel.send
acceptsstring | Blob | ArrayBuffer | ArrayBufferView
but because the.send
method is declared as multiple overrides you have to work out the type of the argument before you invoke the method, even though you don't actually do anything to the data before sending:Changing it to the following works:
Reference
The text was updated successfully, but these errors were encountered: