Skip to content

offer answer uses deprecated callback interface #36

@payload

Description

@payload

# 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions