ManagerSessions

Access this instance at HomeyAPIV3Local.sessions.

Extends

Classes

Methods

connect

(async) connect(): Promise.<void>

Connect to the realtime namespace.

Returns

Promise.<void>

disconnect

(async) disconnect(): Promise.<void>

Disconnect from the realtime namespace.

Returns

Promise.<void>

getSessionMe

(async) getSessionMe(): Promise.<any>

Scopes

-

HTTP

GET /api/manager/sessions/session/me

Returns

Promise.<any>

getState

(async) getState(): Promise.<any>

Scopes

homey.system.readonly

HTTP

GET /api/manager/sessions/state

Returns

Promise.<any>

isConnected

isConnected(): Boolean

If this manager's namespace is connected to Socket.io.

Returns

Boolean

Events

session.create

.on('session.create')

Parameters

Name Type Description
session
HomeyAPIV3Local.ManagerSessions.Session

session.delete

.on('session.delete')

Parameters

Name Type Description
session
HomeyAPIV3Local.ManagerSessions.Session

session.update

.on('session.update')

Parameters

Name Type Description
session
HomeyAPIV3Local.ManagerSessions.Session