This makes it easier to reason about the calls. It becomes more explicit - what's going on, whether you need to call .open for a method call to work or not etc.
bindings and etc, other than methods themselves, could also work on the client as they were. But it's recommended to use .ws, makes it easier to read.
coverage: 68.619% (-0.007%) from 68.626%
when pulling ca10c0a5608c325c2a6aacd3007d8be1d77d9f2a on nodech:hs-client-ws
into 5f943173e0b58d6110e6945b3f7ff925ae6dec5c on handshake-org:master.
This makes it easier to reason about the calls. It becomes more explicit - what's going on, whether you need to call
.open
for a method call to work or not etc.bindings and etc, other than methods themselves, could also work on the
client
as they were. But it's recommended to use.ws
, makes it easier to read.