websockets / ws

Simple to use, blazing fast and thoroughly tested WebSocket client and server for Node.js
MIT License
21.34k stars 2.3k forks source link

options Undefined error fixed #2199

Closed ackava closed 5 months ago

ackava commented 5 months ago

The new version broke http2 proxy example, as new WebSocket(null) fails with error unable to read autoPong from undefined. This simple check will prevent this error.

lpinca commented 5 months ago

See https://github.com/websockets/ws/issues/2188.