swh:1:snp:c53ab93da1867a0ee99951a3636bca865f9194df
Raw File
Tip revision: 3bf674f2cf2aeed322740a3eb5c5f2f3a8f3dad3 authored by einaros on 23 March 2012, 07:37:49 UTC
bump
Tip revision: 3bf674f
BufferUtil.js
/*!
 * ws: a node.js websocket client
 * Copyright(c) 2011 Einar Otto Stangvik <einaros@gmail.com>
 * MIT Licensed
 */

/**
 * Node version 0.4 and 0.6 compatibility
 */

try {
  module.exports = require('../build/Release/bufferutil');
} catch (e) { try {
  module.exports = require('../build/default/bufferutil');
} catch (e) {
  console.error('bufferutil.node has either not been built (run make),');
  console.error('or your node install has changed architecture (run make clean && make).')
  throw e;
}}
back to top