default to wss and some documentation updates, #40

This commit is contained in:
Serene H 2017-02-28 22:46:39 -08:00
parent d1ec51bfb9
commit 3fe10f3e7c
4 changed files with 23 additions and 6 deletions

View file

@ -71,6 +71,7 @@ Parse =
m = spec.match(/^\[([\0-9a-fA-F:.]+)\]:([0-9]+)$/) if !m
# IPv4 syntax.
m = spec.match(/^([0-9.]+):([0-9]+)$/) if !m
# TODO: Domain match
return null if !m
host = m[1]