add socket.io and message broadcasting from all pages