Node app which broadcasts messages and pings via websockets