You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-9
Original file line number
Diff line number
Diff line change
@@ -107,9 +107,9 @@ Once you have the websocket endpoint you need you can:
107
107
```javascript
108
108
var socket =io(endpoint);
109
109
socket.on('connect', function () {
110
-
socket.emit('message', yourCommand);
110
+
socket.emit('command', yourCommand);
111
111
112
-
socket.on('message', function () {
112
+
socket.on('command', function () {
113
113
// Your code to handle messages
114
114
})
115
115
}
@@ -309,17 +309,20 @@ The results of the upload will be delivered via websocket with messages that loo
309
309
310
310
## Development
311
311
312
-
From the project root dir executing:
312
+
To clone the repository, run the following command:
313
313
```
314
-
exportGOPATH=$PWD
315
-
go get
316
-
go build
314
+
go get github.com/arduino/arduino-create-agent
317
315
```
318
-
will build the `arduino-create-agent` binary.
319
316
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
+
```
321
324
322
-
You can use `bootstrapPlatforms` function to compile the needed CGO-enabled environment
325
+
This will create the `arduino-create-agent` binary.
323
326
324
327
Other prerequisites are:
325
328
* libappindicator (Linux only on Ubuntu `sudo apt-get install libappindicator1`)
0 commit comments