browser.js 176 B

12345678
  1. 'use strict';
  2. module.exports = function () {
  3. throw new Error(
  4. 'ws does not work in the browser. Browser clients must use the native ' +
  5. 'WebSocket object'
  6. );
  7. };