Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

offer answer uses deprecated callback interface #36

Open
payload opened this issue Mar 1, 2022 · 0 comments
Open

offer answer uses deprecated callback interface #36

payload opened this issue Mar 1, 2022 · 0 comments

Comments

@payload
Copy link

payload commented Mar 1, 2022

# TODO: what is this?
#
# @nodoc
#
oaError: (error) =>

There is a "oaError" with a comment "What is this". oaError stands for offer/answer Error and is used as the failureCallback handler in RTCPeerConnections methods createOffer and createAnswer. This is a deprecated interface for these methods.

Task: use instead the promise based interface

From MDN:

In older code and documentation, you may see a callback-based version of this function. This has been deprecated and its use is strongly discouraged. You should update any existing code to use the Promise-based version of createOffer() instead. The parameters for this form of createOffer() are described below, to aid in updating existing code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant