Homey.HomeyClient

const { HomeyClient } = require('homey');

Table of Contents

new Homey.HomeyClient(homey, socket)

Parameters:
Name Type Description
homey Homey
socket SocketIO.Socket

the socket used for communicating with homey

Methods

emit(uri, event, data)

Parameters:
Name Type Description
uri string
event string
data any

registerBroadcastListener(uri, event, callback)

Parameters:
Name Type Description
uri string
event string
callback function

registerRequestListener(uri, event, callback)

Parameters:
Name Type Description
uri string
event string
callback function