Skip to content

Commit c98e19b

Browse files
authored
Merge pull request #207 from hannobraun/update-readme
Update readme
2 parents 6d4a183 + 0434d0c commit c98e19b

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

README.md

+12-9
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ Once you have the websocket endpoint you need you can:
107107
```javascript
108108
var socket = io(endpoint);
109109
socket.on('connect', function () {
110-
socket.emit('message', yourCommand);
110+
socket.emit('command', yourCommand);
111111

112-
socket.on('message', function () {
112+
socket.on('command', function () {
113113
// Your code to handle messages
114114
})
115115
}
@@ -309,17 +309,20 @@ The results of the upload will be delivered via websocket with messages that loo
309309
310310
## Development
311311
312-
From the project root dir executing:
312+
To clone the repository, run the following command:
313313
```
314-
export GOPATH=$PWD
315-
go get
316-
go build
314+
go get github.com/arduino/arduino-create-agent
317315
```
318-
will build the `arduino-create-agent` binary.
319316
320-
`compile_webidebridge.sh` contains the cross-platform script we use to deploy the agent for all the supported platforms; it needs to be adjusted as per your `go` installation paths and OS.
317+
This will clone the repository into your [Go workspace](https://golang.org/doc/code.html#Workspaces) or create a new workspace, if one doesn't exist. You can set `$GOPATH` to define where your Go workspace is located.
318+
319+
Now you can go to the project directory and compile it:
320+
```
321+
cd $GOPATH/src/github.com/arduino/arduino-create-agent
322+
go build
323+
```
321324
322-
You can use `bootstrapPlatforms` function to compile the needed CGO-enabled environment
325+
This will create the `arduino-create-agent` binary.
323326
324327
Other prerequisites are:
325328
* libappindicator (Linux only on Ubuntu `sudo apt-get install libappindicator1`)

0 commit comments

Comments
 (0)