fe9lix / Tuio.js

TUIO Reference Implementation for JavaScript
GNU General Public License v2.0
95 stars 26 forks source link

Doesn't work with latest version of Express #1

Closed abusedmedia closed 11 years ago

abusedmedia commented 11 years ago

Hi Thank you for this very clean and nice implementation.

I notice your library works fine with Express 2.5.9 while with the 3.0.x it doesn't.

It would be great to keep this awesome project up, thus it should work out of a box with the latest dependencies versions.

Unfortunately I cannot try to fix it, It is really out of my ability, at least so far.

Best Fabio

fe9lix commented 11 years ago

Hi! Sorry for the late reply (holidays...).

This is a known issue when using Express 3.x and the Socket.io library. If you want to use Express 3.x, you can easily modify the code in src/server.js according to the wiki section "Socket.IO compatibility": https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x

(Just pass the variable server instead of app to socketPort.)