added web socket client ability to send messages to connected devices