https://github.com/postmannen/websocket-testing
testing websocket
https://github.com/postmannen/websocket-testing
Last synced: 8 months ago
JSON representation
testing websocket
- Host: GitHub
- URL: https://github.com/postmannen/websocket-testing
- Owner: postmannen
- Created: 2018-07-18T16:19:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-21T08:35:51.000Z (almost 8 years ago)
- Last Synced: 2025-01-17T11:13:41.466Z (over 1 year ago)
- Language: Go
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# websocket-testing
Test loading templates, and send them to be drawn via websocket to the browser. The element that is made in the browser can then be deleted on the fly without reloading the page.
The templates are being parsed normally but instead of executing the template to http.ResponseWriter, we execute it to a bytes.Buffer which got a io.Writer,
and we then send that buffer over the websocket.