initial setup of hid, web sockets and client