const DEFAULTOPTIONS = (in = Channel(1),
out = Channel(2),
creates instances of channels. These are passed by reference to every new instances of ServerWS.
Consequences of .in and .out being shared between instances: All ServerWS instances would be closed when closing one of them. Error messages would seem to originate from another ServerWS.
This returning true indicates that the bug isn't fixed:
creates instances of channels. These are passed by reference to every new instances of ServerWS.
Consequences of .in and .out being shared between instances: All ServerWS instances would be closed when closing one of them. Error messages would seem to originate from another ServerWS.
This returning true indicates that the bug isn't fixed:
This workaround currently returns false and shows how to generate new channels every time: