-
-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10143d6
commit 5619cb3
Showing
5 changed files
with
55 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// FIXME: This comes from /lib/SocketManager.js. It cannot be imported as it's commonjs module and require isn't supported by webpack | ||
|
||
// events from client ---> server | ||
export const inboundEvents = { | ||
init: 'INITED', // get all nodes | ||
zwave: 'ZWAVE_API', // call a zwave api | ||
hass: 'HASS_API' // call an hass api | ||
} | ||
|
||
// events from server ---> client | ||
export const socketEvents = { | ||
init: 'INIT', // automatically sent when a new client connects to the socket | ||
controller: 'CONTROLLER_CMD', // controller status updates | ||
connected: 'CONNECTED', // socket status | ||
nodeRemoved: 'NODE_REMOVED', | ||
nodeUpdated: 'NODE_UPDATED', | ||
valueUpdated: 'VALUE_UPDATED', | ||
valueRemoved: 'VALUE_REMOVED', | ||
api: 'API_RETURN', // api results | ||
debug: 'DEBUG' | ||
} |