update d3 example. troubleshoot web sockets.