Implementation of canvas with socket.io + chat application