Skip to content

Commit b3d4b1f

Browse files
authored
updated README
1. Added section for disable SSL certificate 2. Get status of connection
1 parent 9e508aa commit b3d4b1f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ Create instance of `scclient` by passing url of socketcluster-server end-point
117117
client.connect()
118118
```
119119

120+
#### Getting connection status
121+
122+
```swift
123+
//This will send websocket handshake request to socketcluster-server
124+
var status = client.isConnected()
125+
```
126+
127+
120128
Emitting and listening to events
121129
--------------------------------
122130
#### Event emitter
@@ -243,3 +251,10 @@ Implementing Pub-Sub via channels
243251
})
244252
```
245253

254+
#### Disable SSL Certificate Verification
255+
256+
```swift
257+
var client = ScClient(url: "http://localhost:8000/socketcluster/")
258+
client.disableSSLVerification(true)
259+
```
260+

0 commit comments

Comments
 (0)