heroku websockets support:-



我该怎么办?

heroku labs:enable websockets

对此heroku说:-WARNING: This feature is experimental and may change or be removed without notice.

或者使用:-

io.configure(function () { 
  io.set("transports", ["xhr-polling"]); 
  io.set("polling duration", 10); 
}); 

牢记稳定。

Heroku Labs:-用于Heroku的测试版。目前情况不稳定。

io.configure(function () { 
  io.set("transports", ["xhr-polling"]); 
  io.set("polling duration", 10); 
}); 

以上情况稳定。

最新更新