From 0c007bc1cb0849da44b86a5374d6131e8d1284d4 Mon Sep 17 00:00:00 2001 From: Zalmoxisus Date: Sat, 21 Jan 2017 16:54:56 +0200 Subject: [PATCH] Add details about connection path Related to https://github.com/zalmoxisus/redux-devtools-extension/issues/288 --- docs/API/Realtime.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/API/Realtime.md b/docs/API/Realtime.md index 633e11f..0ce117a 100644 --- a/docs/API/Realtime.md +++ b/docs/API/Realtime.md @@ -26,6 +26,8 @@ socket = Socketcluster.socket("ws://localhost:8000/socketcluster/") socket.connect() ``` +> Note that JavaScript client composes the url from `hostname` and `port`, adding `/socketcluster/` path automatically. For other clients, you should specify that path. For example, for `ObjectiveC` it would be `self.client.initWithHost("localhost/socketcluster/", onPort: 8000, securely: false)`. + #### 2. Disconnecting and reconnecting SocketCluster client handles reconnecting for you, but you still might want to know when the connection is established, or when it failed to connect.