Description
Websockets can receive binary or text messages. Using createWebSocketStream forces the decision to receive either string or buffer results.
Expected result:
Text messages are received as string, binary messages are received as buffer.
Actual result:
Without specified encoding: All text messages are converted to buffers.
With specified encoding: All binary messages are converted to string.