When destructuring the ws param in open(ws) { }, the method starts throwing: TypeError: undefined is not an object (evaluating 'this.raw'). It looks vaguely related to #174.
This is expected behavior, destructuring assignment is not "supported" in javascript for class methods like subscribe, because the context and therefore "this" is lost. You have to use ws.subsribe(...)
When destructuring the ws param in
open(ws) { }
, the method starts throwing:TypeError: undefined is not an object (evaluating 'this.raw')
. It looks vaguely related to #174.My environment
Snippet to reproduce:
Snippet that does not throw: