Add details about connection path

Related to
https://github.com/zalmoxisus/redux-devtools-extension/issues/288
This commit is contained in:
Zalmoxisus 2017-01-21 16:54:56 +02:00
parent bc8113c7cf
commit 0c007bc1cb

View File

@ -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.