VERY basic websocket functionality. Still needs debugging and actual implementation.