Websocket
[VSoRC/.git] / node_modules / websocket / lib / Validation.js
diff --git a/node_modules/websocket/lib/Validation.js b/node_modules/websocket/lib/Validation.js
new file mode 100644 (file)
index 0000000..b4106e8
--- /dev/null
@@ -0,0 +1,17 @@
+/*!
+ * UTF-8 Validation Code originally from:
+ * ws: a node.js websocket client
+ * Copyright(c) 2011 Einar Otto Stangvik <einaros@gmail.com>
+ * MIT Licensed
+ */
+
+try {
+    module.exports = require('../build/Release/validation');
+} catch (e) { try {
+    module.exports = require('../build/default/validation');
+} catch (e) { try {
+    module.exports = require('./Validation.fallback');
+} catch (e) {
+    console.error('validation.node seems not to have been built. Run npm install.');
+    throw e;
+}}}