You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
449 B

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