work in progress on web sockets and resizable canvas