Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 392 Bytes

README.md

File metadata and controls

6 lines (5 loc) · 392 Bytes

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.