From 5f981d97c34d60c320b504904f7a30b7dace6005 Mon Sep 17 00:00:00 2001 From: Sandrina Pereira Date: Mon, 23 Dec 2019 00:44:58 +0000 Subject: [PATCH] Docs - Client API - io.protocol Change `window.location` to `window.location.host`. If `io(window.location)` is started, it works, but then if we pass `options`, those are ignored. --- source/docs/client-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/client-api.md b/source/docs/client-api.md index 88552672..7b3526ab 100644 --- a/source/docs/client-api.md +++ b/source/docs/client-api.md @@ -28,7 +28,7 @@ The protocol revision number. ## io([url][, options]) - - `url` _(String)_ (defaults to `window.location`) + - `url` _(String)_ (defaults to `window.location.host`) - `options` _(Object)_ - `forceNew` _(Boolean)_ whether to reuse an existing connection - **Returns** `Socket`