diff --git a/developer/tutorials/pubsub.md b/developer/tutorials/pubsub.md index ac93847..4f80cf8 100644 --- a/developer/tutorials/pubsub.md +++ b/developer/tutorials/pubsub.md @@ -49,9 +49,9 @@ Go and the NATS server should be installed. When the server starts successfully, you will see the following messages: ```sh -[1] 2015/08/12 15:18:22.301550 [INF] Starting nats-server version 0.6.4 -[1] 2015/08/12 15:18:22.301762 [INF] Listening for client connections on 0.0.0.0:4222 -[1] 2015/08/12 15:18:22.301769 [INF] nats-server is ready +[1] 2019/31/05 15:18:22.301550 [INF] Starting nats-server version 2.0.0 +[1] 2019/31/05 15:18:22.301762 [INF] Listening for client connections on 0.0.0.0:4222 +[1] 2019/31/05 15:18:22.301769 [INF] nats-server is ready ``` The NATS server listens for client connections on TCP Port 4222. diff --git a/nats_protocol/nats-protocol-demo.md b/nats_protocol/nats-protocol-demo.md index 4c3323a..b51f21a 100644 --- a/nats_protocol/nats-protocol-demo.md +++ b/nats_protocol/nats-protocol-demo.md @@ -23,7 +23,7 @@ $ telnet demo.nats.io 4222 Trying 107.170.221.32... Connected to demo.nats.io. Escape character is '^]'. -INFO {"server_id":"ad29ea9cbb16f2865c177bbd4db446ca","version":"0.6.8","go":"go1.5.1","host":"0.0.0.0","port":4222,"auth_required":false,"ssl_required":false,"max_payload":1048576} +INFO {"server_id":"NCXMJZYQEWUDJFLYLSTTE745I2WUNCVG3LJJ3NRKSFJXEG6RGK7753DJ","version":"2.0.0","proto":1,"go":"go1.11.10","host":"0.0.0.0","port":4222,"max_payload":1048576,"client_id":5089} ``` **3. Run the subscriber.** @@ -58,9 +58,8 @@ $ telnet demo.nats.io 4222 Trying 107.170.221.32... Connected to demo.nats.io. Escape character is '^]'. -INFO {"server_id":"ad29ea9cbb16f2865c177bbd4db446ca","version":"0.6.8","go":"go1.5.1","host":"0.0.0.0","port":4222,"auth_required":false,"ssl_required":false,"max_payload":1048576} +INFO {"server_id":"NCXMJZYQEWUDJFLYLSTTE745I2WUNCVG3LJJ3NRKSFJXEG6RGK7753DJ","version":"2.0.0","proto":1,"go":"go1.11.10","host":"0.0.0.0","port":4222,"max_payload":1048576,"client_id":5089} ``` - **6. Publish a message.** The message includes the command (`pub`), subject (`foo.bar`), and length of the payload (`5`). Press enter and provide the payload (`hello`), then press enter again. @@ -140,7 +139,7 @@ $ telnet demo.nats.io 4222 Trying 107.170.221.32... Connected to demo.nats.io. Escape character is '^]'. -INFO {"server_id":"ad29ea9cbb16f2865c177bbd4db446ca","version":"0.6.8","go":"go1.5.1","host":"0.0.0.0","port":4222,"auth_required":false,"ssl_required":false,"max_payload":1048576} +INFO {"server_id":"NCXMJZYQEWUDJFLYLSTTE745I2WUNCVG3LJJ3NRKSFJXEG6RGK7753DJ","version":"2.0.0","proto":1,"go":"go1.11.10","host":"0.0.0.0","port":4222,"max_payload":1048576,"client_id":5089} ping PONG diff --git a/nats_protocol/nats-server-protocol.md b/nats_protocol/nats-server-protocol.md index 4d4f9a3..d226b25 100644 --- a/nats_protocol/nats-server-protocol.md +++ b/nats_protocol/nats-server-protocol.md @@ -69,7 +69,7 @@ The valid options are as follows: Below is an example of an `INFO` string received by a NATS server, with the `ip` field. -`INFO {"server_id":"KP19vTlB417XElnv8kKaC5","version":"0.9.4","go":"","host":"localhost","port":5222,"auth_required":false,"tls_required":false,"tls_verify":false,"max_payload":1048576,"ip":"nats-route://127.0.0.1:5222/","connect_urls":["localhost:4222"]}` +`INFO {"server_id":"KP19vTlB417XElnv8kKaC5","version":"2.0.0","go":"","host":"localhost","port":5222,"auth_required":false,"tls_required":false,"tls_verify":false,"max_payload":1048576,"ip":"nats-route://127.0.0.1:5222/","connect_urls":["localhost:4222"]}` ## CONNECT