mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
16 lines
470 B
JavaScript
16 lines
470 B
JavaScript
// this is a test server to support tests which make requests
|
|
|
|
var express = require('express');
|
|
var app = express();
|
|
var join = require('path').join;
|
|
var http = require('http').Server(app);
|
|
var server = require('engine.io').attach(http);
|
|
http.listen(process.env.ZUUL_PORT);
|
|
|
|
// serve `engine.io.js` and `worker.js` for worker tests
|
|
app.use('/test/support', express.static(join(__dirname, 'public')));
|
|
|
|
server.on('connection', function(socket){
|
|
socket.send('hi');
|
|
});
|