Canvas + Sockets problems