deno-websocket icon indicating copy to clipboard operation
deno-websocket copied to clipboard

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

Open theweinzierl opened this issue 3 years ago • 2 comments

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 avatar Jun 14 '21 23:06 theweinzierl

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.

theweinzierl avatar Jun 15 '21 08:06 theweinzierl

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

michael-spengler avatar Aug 19 '21 14:08 michael-spengler