12
10

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.

Windowsでwebsocketのデバッグにwscat使う

Posted at

環境

windows10

node.jsインストール

とりあえず安定板使う
http://nodejs.jp/nodejs.org_ja/docs/v0.10/#download

環境変数のパスの末尾に\が付く不具合があるそうなので直す

C:\Program Files\nodejs

C:\Program Files\nodejs

参考:http://webdev.jp.net/windows-nodejs-path/

これで通常のコマンドプロンプトからnode使える!

npmでwscatインストール

コマンドプロンプトで、

$npm install -g wscat

node-gypでpythonが無いよみたいなエラーが出たけどとりあえず動いた

npm install -g wsだと動かなかった

#ざっくり使う
サーバーに繋ぐ

$wscat -c ws://localhost:3000

サーバーとして待ち受ける

$ wscat -l 3000

参考:http://tricknotes.hateblo.jp/entry/20120227/p1

便利!

12
10
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
12
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?