how to use/configure secured websocket (wss)?

asked 2021-03-25 10:55:31 +0800

wastemails gravatar image wastemails
130 1 2

updated 2021-03-25 10:55:44 +0800

Is there any way to used secured web socket protocol (wss) instead of plain websocket (ws) in zk

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted

answered 2021-03-26 10:42:27 +0800

cor3000 gravatar image cor3000
6280 2 7

yes as soon as your application is using https:, websockets will also switch to the wss: protocol prefix automatically.

You can verify that yourself in our demo: https://www.zkoss.org/zkdemo/server_push/websocket

The websocket url used is:


Based on that I am slightly surprised you're even asking. Is this automatic functionality not working on your side?

link publish delete flag offensive edit

answered 2021-03-30 23:03:19 +0800

wastemails gravatar image wastemails
130 1 2

Thankyou, found wss when using https.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2021-03-25 10:55:31 +0800

Seen: 10 times

Last updated: Mar 30 '21

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More