made websockets relative to hostname