browser.js 175 Bytes
Newer Older
liang ce committed
1 2 3 4 5 6 7 8
'use strict';

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