ryo-ma / deno-websocket

🦕 A simple WebSocket library like ws of node.js library for deno
https://deno.land/x/websocket
MIT License
152 stars 19 forks source link

Question: Is there any way to use secure web socket protocol? #24

Open theweinzierl opened 3 years ago

theweinzierl commented 3 years ago

Hi guys,

great work so far! Lately I was wondering if there is any chance to configure a server with secure web socket protocol?

Thanks a lot!

theweinzierl commented 3 years ago

for anyone interested in this issue. I imported the serverTLS function from the http-module in deps.ts and ./lib/websocket.ts and I am calling serveTLS() instead of serve() with adequate httpsOptions in the connect-function of websocket.ts. It worked fine for me so far.

michael-spengler commented 3 years ago

@theweinzierl: It would be great if your enhancement could be added to this module.