18 lines
451 B
Go
18 lines
451 B
Go
|
package emlid
|
||
|
|
||
|
const (
|
||
|
// EventBrowserConnected is emitted after the initial connection to the
|
||
|
// ReachView endpoint
|
||
|
eventBrowserConnected = "browser connected"
|
||
|
)
|
||
|
|
||
|
// sendBrowserConnected notifies the ReachView endpoint
|
||
|
// of a new connection.
|
||
|
// See misc/reachview/update_main.js line 297
|
||
|
func (c *Client) sendBrowserConnected() error {
|
||
|
payload := map[string]string{
|
||
|
"data": "I'm connected",
|
||
|
}
|
||
|
return c.Emit(eventBrowserConnected, payload)
|
||
|
}
|