Commit 1cdc2070 by guxiaobai

fix default port

parent 075bf899
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
git clone ssh://gitlab@gitlab.ikcrm.com:40022/ikcrm_common/node_faye.git git clone ssh://gitlab@gitlab.ikcrm.com:40022/ikcrm_common/node_faye.git
yarn install (或者: npm install) yarn install (或者: npm install)
node faye.js node faye.js
curl localhost:9991/faye/client.js curl localhost:9901/faye/client.js
== Deploy == Deploy
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
== Test Faye Connection == Test Faye Connection
curl http://localhost:9991/faye -d 'message={[channel]("/messages/new",) [data]("hello")}' curl http://localhost:9901/faye -d 'message={[channel]("/messages/new",) [data]("hello")}'
var client = new Faye.Client('http://localhost:9991/faye'); var client = new Faye.Client('http://localhost:9991/faye');
client.subscribe('/messages', function(message) { client.subscribe('/messages', function(message) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment