Skip to content

Error is fired without 'type'  #1028

Open
@AlonBru

Description

@AlonBru

Reproduction:

  • create 2 peers peerA and peerB
  • add to peer B 'open' event listener to have a way store data connection on open and add 'error' listener on the dataConnection
  • connect with peerA to peerB, then close the connection immediately.
  • try using connection.send() from peerB

Result:
Receiving these errors, however they do not seem to have a defined 'type' property as
image

Expectation:
As per the docs for peer errors, these errors should also have a 'type' so as to allow to better handle them in code

Metadata

Metadata

Assignees

No one assigned

    Labels

    clientrelated to peerjs clientdocumentationneed update some info in docfeaturesuggestions for new features or enhancements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions