-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathlrserver.go
More file actions
29 lines (19 loc) · 761 Bytes
/
lrserver.go
File metadata and controls
29 lines (19 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
Package lrserver implements a basic LiveReload server.
(See http://feedback.livereload.com/knowledgebase/articles/86174-livereload-protocol .)
Using the recommended default port 35729:
http://localhost:35729/livereload.js
serves the LiveReload client JavaScript, and:
ws://localhost:35729/livereload
communicates with the client via web socket.
File watching must be implemented by your own application, and reload/alert
requests sent programmatically.
Multiple servers can be instantiated, and each can support multiple connections.
*/
package lrserver
const (
// DefaultName is the livereload Server's default name
DefaultName string = "LiveReload"
// DefaultPort is the livereload Server's default server port
DefaultPort uint16 = 35729
)