LoginSignup
8
9

More than 5 years have passed since last update.

HerokuでWebsocketを使いたいときの注意点

Posted at

よく以下のようにやればいい、と書いてあるのだが実際やってみると「labsなんてコマンドないよ」みたいなメッセージが出てはまったことがあった。

heroku labs:enable websockets -a myapp

heroku labsは実はプラグインなので、インストールが必要(あまり困っている人がいないところを見ると最近は最初から入っているのか?一応gem update herokuをかけたのだが・・・)。

heroku plugins:install https://github.com/heroku/heroku-labs.git

これで晴れてwebsocketを使えるようになった。

<参考>
Heroku Labs: WebSockets
heroku-labs

8
9
1

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
8
9