working first version, sending shake/noShake over web socket and vibrating motor according to message