added web socket connection