m2node icon indicating copy to clipboard operation
m2node copied to clipboard

Deprecated IOWatcher

Open jonni83 opened this issue 13 years ago • 6 comments

When running the example code, i receive the warning:

WARNING: don't use IOWatcher, it'll be removed in v0.9 WARNING: don't use IOWatcher, it'll be removed in v0.9

jonni83 avatar Sep 27 '12 11:09 jonni83

Do you see this with the example in examples/node-server.js or the example in examples/express-server.js ?

dan-manges avatar Sep 28 '12 02:09 dan-manges

Both. Here's the output:

root@box:~/git/project/src/dispatcher/node_modules/m2node/examples# node express-server.js 
Warning: express.createServer() is deprecated, express
applications no longer inherit from http.Server,
please use:

  var express = require("express");
  var app = express();

WARNING: don't use IOWatcher, it'll be removed in v0.9
WARNING: don't use IOWatcher, it'll be removed in v0.9

And:

root@box:~/git/project/src/dispatcher/node_modules/m2node/examples# node node-server.js 
WARNING: don't use IOWatcher, it'll be removed in v0.9
WARNING: don't use IOWatcher, it'll be removed in v0.9

In both cases you fall back to the command line.

jgeluk avatar Sep 28 '12 20:09 jgeluk

I have the same experience, both. And I also have the same problem with the examples falling back to the command line. I solved this by using

app.listen();

otherwise, i didn't see why the server would run. honestly though, i need to go through the code and do a better job of trying to understand how the handler is supposed to work. there isn't a lot of code, but it's complex enough to keep me confused!

jonni83 avatar Sep 28 '12 22:09 jonni83

Anyone solve this issue. I am having the same problem.

evan108108 avatar Dec 05 '12 16:12 evan108108

Here's another one suffering this issue.

gdelca5 avatar Mar 18 '14 15:03 gdelca5

Sorry about the issue. If anybody has a fix for it, I'll be happy to give you commit rights to the project.

dan-manges avatar Mar 20 '14 13:03 dan-manges