Skip to content

Conversation

lpinca
Copy link
Member

@lpinca lpinca commented Mar 17, 2019

  • If the readyState attribute is CONNECTING, throw an exception.
  • If the readyState attribute is CLOSING or CLOSED
    • Increase the bufferedAmount attribute by the length of the data
      argument in bytes.
    • If specified, call the callback function with an error.

Fixes #1515

- If the `readyState` attribute is `CONNECTING`, throw an exception.
- If the `readyState` attribute is `CLOSING` or `CLOSED`
  - Increase the `bufferedAmount` attribute by the length of the `data`
    argument in bytes.
  - If specified, call the `callback` function with an error.

Fixes #1515
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

Successfully merging this pull request may close these issues.

send on a closed WebSocket should not throw an exception

1 participant