After reading Intro to (images in) Go by @pheelicks I started thinking about a better approach to stream the canvas to the browser.
Using data URIs, this is quite simple. I hammered together the Nodes example with my approach as a showcase.
I don't use base64 data URIs anymore because it adds a lot of overhead. Instead I serve the image in a 2nd handler and just update the img.src attribute with a unused parameter so the browser dosn't cache it.
-
Notifications
You must be signed in to change notification settings - Fork 0
Example of sending server drawn canvases to a browser
License
cryptix/CanvasStreamTest
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Example of sending server drawn canvases to a browser
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published