Skip to content

Configurable cors #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
Prev Previous commit
Next Next commit
add OS field to reported infos
  • Loading branch information
facchinm committed Oct 23, 2015
commit 29c6b4e9ed42cd8f6e841a4afcf564be972d4dc2
1 change: 1 addition & 0 deletions hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func (h *hub) run() {
c.send <- []byte("{\"Version\" : \"" + version + "\"} ")
c.send <- []byte("{\"Commands\" : [\"list\", \"open [portName] [baud] [bufferAlgorithm (optional)]\", \"send [portName] [cmd]\", \"sendnobuf [portName] [cmd]\", \"close [portName]\", \"bufferalgorithms\", \"baudrates\", \"restart\", \"exit\", \"program [portName] [board:name] [$path/to/filename/without/extension]\", \"programfromurl [portName] [board:name] [urlToHexFile]\"]} ")
c.send <- []byte("{\"Hostname\" : \"" + *hostname + "\"} ")
c.send <- []byte("{\"OS\" : \"" + runtime.GOOS + "\"} ")
case c := <-h.unregister:
delete(h.connections, c)
// put close in func cuz it was creating panics and want
Expand Down