Commit fad687a
committed
server: fix Wss protocol error - use ws:// with transport=ssl
AsyncTcpConnection doesn't have a Wss protocol class. Workerman's Ws
protocol handles SSL via context options with transport=ssl, not via
the wss:// scheme. Changed buildHubRelayWsUrl() to always return ws://
and openHubConnection() to set transport=>'ssl' in context.1 parent 380c888 commit fad687a
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
187 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
324 | 325 | | |
325 | 326 | | |
326 | 327 | | |
| |||
0 commit comments