Make the websocket underlying socket mode as "blocking"
  This simplifies the code and in protocol based communication,
  the number of bytes to read is always known, so this is safe choice.