Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( URL = struct { WebSocket string JavaScript string }{ WebSocket: "/livereload", JavaScript: "/livereload.js", } )
---------------------------------------------------------------------- * WebSocket Server * ----------------------------------------------------------------------
Functions ¶
func ServeJavaScript ¶
func ServeJavaScript(w http.ResponseWriter, r *http.Request)
ServeJavaScript serves livereload.js for browser.
func ServeWebSocket ¶
func ServeWebSocket(w http.ResponseWriter, r *http.Request)
Serve serves as a livereload server for accepting I/O tunnel messages.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.