Revision 5b7fbb000972edd34b4882384e1185f033000220 authored by Luigi Pinca on 13 January 2022, 19:26:14 UTC, committed by GitHub on 13 January 2022, 19:26:14 UTC
Do not convert strings to `Buffer`s if data does not need to be masked.

Refs: https://github.com/websockets/ws/pull/1998
1 parent 8de448f
Raw File
browser.js
'use strict';

module.exports = function () {
  throw new Error(
    'ws does not work in the browser. Browser clients must use the native ' +
      'WebSocket object'
  );
};
back to top