6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

herokuでwebsocketsが使えるようになったらしいから試してみた

Last updated at Posted at 2013-12-12

herokuでwebsocketsが使えるようになったらしい。

$ git init
$ git add .
$ git commit -m "Ready to deploy"

heroku create

普通にコミットして、


heroku labs:enable websockets

これで、websocketsが使えるようになる。

元々ソースコードに書いていた

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

これは削除しないといけない。

ひとまず自分のアプリで試したら普通にこれで動作した。だけど、元々pollingでも問題ないようなアプリだったので、実感はない。

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?