You are currently viewing the Homey Apps SDK v2 documentation. New apps should use Homey Apps SDK v3 ››

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