From 31addbab7ef0239f5b8bc32b5ddc259b9074ab38 Mon Sep 17 00:00:00 2001 From: saroj990 Date: Mon, 16 Sep 2019 14:09:59 +0530 Subject: [PATCH] update doc fix minor typo fix the minor typo --- reference/websockets/sails.io.js/sails.io.js.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/websockets/sails.io.js/sails.io.js.md b/reference/websockets/sails.io.js/sails.io.js.md index 76dcdfa85..72d4738c4 100644 --- a/reference/websockets/sails.io.js/sails.io.js.md +++ b/reference/websockets/sails.io.js/sails.io.js.md @@ -63,7 +63,7 @@ The easiest way to configure the four most common settings for the socket client > ``` -This example will disable the eager socket connection, force the client environment to "production" (which disables logs), and set an `x-csrf-token` header that will be sent in every socket request (unless overridden). Note that comoposite values like the `headers` dictionary are wrapped in a pair of _single-quotes_. That's because composite values specified this way must be _JSON-encoded_-- meaning they must use double-quotes around string values _and_ around key names. +This example will disable the eager socket connection, force the client environment to "production" (which disables logs), and set an `x-csrf-token` header that will be sent in every socket request (unless overridden). Note that composite values like the `headers` dictionary are wrapped in a pair of _single-quotes_. That's because composite values specified this way must be _JSON-encoded_-- meaning they must use double-quotes around string values _and_ around key names. Any configuration which may be provided as an HTML attribute may alternately be provided prefixed with `data-` (e.g. `data-autoConnect`, `data-environment`, `data-headers`, `data-url`). This is for folks who need to support browsers that have issues with nonstandard HTML attributes (or if the idea of using nonstandard HTML attributes just creeps you out). If both the standard HTML attribute and the `data-` prefixed HTML attribute are provided, the latter takes precendence.