Added support for web socket communications with the front end