pkamenarsky / replica

A remote virtual DOM library for Haskell
BSD 3-Clause "New" or "Revised" License
139 stars 14 forks source link

Add wss; fix protocol string #19

Closed yunze-chia closed 4 years ago

yunze-chia commented 4 years ago

This fixes the window.location.protocol matching by adding a trailing colon to the 'http' string. wss:// protocol is also used in place of ws:// if https is used.

yunze-chia commented 4 years ago

Hello! I've been trying out replica and found this issue when serving through TLS. Thought I would contribute a PR.

pkamenarsky commented 4 years ago

Awesome, thanks for the PR!