BufferUtil.js 465 B

1234567891011121314151617
  1. /*!
  2. * Copied from:
  3. * ws: a node.js websocket client
  4. * Copyright(c) 2011 Einar Otto Stangvik <einaros@gmail.com>
  5. * MIT Licensed
  6. */
  7. try {
  8. module.exports = require('../build/Release/bufferutil');
  9. } catch (e) { try {
  10. module.exports = require('../build/default/bufferutil');
  11. } catch (e) { try {
  12. module.exports = require('./BufferUtil.fallback');
  13. } catch (e) {
  14. console.error('bufferutil.node seems to not have been built. Run npm install.');
  15. throw e;
  16. }}}