Enabled websocket communication by stealing an example from the cowboy docs - but we do at least understand it