1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-04 18:57:03 +00:00

update websocket examples - keep neffos and use the iris/websocket as helper only

Former-commit-id: c34b916e186286cd0de6d694d8bdb4f9390121a2
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-07-01 18:52:17 +03:00
parent 69171e844d
commit 35389c6ef8
14 changed files with 40 additions and 10806 deletions

View File

@@ -0,0 +1,6 @@
# Secure Websockets
1. Run your server through `https://` (`iris.Run(iris.TLS)` or `iris.Run(iris.AutoTLS)` or a custom `iris.Listener(...)`)
2. Nothing changes inside the whole app, including the websocket side
3. The clients must dial the websocket server endpoint (i.e `/echo`) via `wss://` prefix (instead of the non-secure `ws://`), for example `wss://example.com/echo`
4. Ready to GO.