adds mows
switch socket.io client code to mqtt over websockets