Client side of web socket now connects to origin instead of hard coded localhost