don't point websockets to localhost, exctract it from window.location.hostname

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>