node-http-proxy/test/ws/socket.io-test.js

20 lines
468 B
JavaScript

/*
* socket.io-test.js: Test for proxying `socket.io` requests.
*
* (C) 2010 Nodejitsu Inc.
* MIT LICENCE
*
*/
var vows = require('vows'),
macros = require('../macros'),
helpers = require('../helpers/index');
vows.describe('node-http-proxy/ws/socket.io').addBatch({
"With a valid target server": {
"and no latency": macros.ws.assertProxied(),
// "and latency": macros.ws.assertProxied({
// latency: 2000
// })
}
}).export(module);