1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

clean up some code blocks

This commit is contained in:
David Tillery 2020-11-23 01:16:50 -05:00
parent c966383582
commit ffe4837710
4 changed files with 9 additions and 7 deletions

View File

@ -38,7 +38,7 @@ nc.close();
{% tab title="JavaScript" %} {% tab title="JavaScript" %}
```javascript ```javascript
// Reconnect buffer size is not configurable on NATS Javascript client // Reconnect buffer size is not configurable on NATS JavaScript client
``` ```
{% endtab %} {% endtab %}
@ -56,7 +56,7 @@ nc.close();
{% tab title="TypeScript" %} {% tab title="TypeScript" %}
```typescript ```typescript
// Reconnect buffer size is not configurable on NATS Typescript client // Reconnect buffer size is not configurable on NATS TypeScript client
``` ```
{% endtab %} {% endtab %}

View File

@ -32,7 +32,7 @@ nc.close();
{% tab title="JavaScript" %} {% tab title="JavaScript" %}
```javascript ```javascript
llet nc = NATS.connect({ let nc = NATS.connect({
reconnect: false, reconnect: false,
servers: ["nats://demo.nats.io:4222"] servers: ["nats://demo.nats.io:4222"]
}); });

View File

@ -40,7 +40,8 @@ nc.close();
```javascript ```javascript
let nc = NATS.connect({ let nc = NATS.connect({
noRandomize: true, noRandomize: true,
servers: ["nats://127.0.0.1:4443", servers: [
"nats://127.0.0.1:4443",
"nats://demo.nats.io:4222" "nats://demo.nats.io:4222"
] ]
}); });
@ -83,7 +84,8 @@ end
// will throw an exception if connection fails // will throw an exception if connection fails
let nc = await connect({ let nc = await connect({
noRandomize: true, noRandomize: true,
servers: ["nats://127.0.0.1:4443", servers: [
"nats://127.0.0.1:4443",
"nats://demo.nats.io:4222" "nats://demo.nats.io:4222"
] ]
}); });