Playing about with canvas and sockets