Commit 36a8cd4
authored
feat: allow resource path to be set in connection URI (#134)
Please note that this implementation differs from the JS one, where the
resource path is the namespace you want to reach:
```js
const socket = io("https://example.com/my-namespace", {
path: "/my-custom-path/"
});
```
Here, we will have:
```C++
sio::client h;
h.connect("https://example.com/my-custom-path/");
h.socket("/my-namespace")->emit("hello");
```1 parent e7de4eb commit 36a8cd4
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
242 | 247 | | |
243 | 248 | | |
244 | 249 | | |
| |||
0 commit comments