Created
September 24, 2014 23:46
-
-
Save psiddh/2840e5ea875ac5c8a678 to your computer and use it in GitHub Desktop.
Sample Info structure in Parent process
This file contains hidden or 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
function test(){ | |
let targetInfo1 = { appId: 1, | |
target: "Target 1", //msg.target | |
sessions: [] }; | |
let targetInfo2 = { appId: 2, | |
target: "Target 2", //msg.target | |
sessions: [] }; | |
let sessionInfo1 = { sessionID: 1234, | |
channels: [] }; | |
let sessionInfo2 = { sessionID: 4567, | |
channels: [] }; | |
let sessionInfo3 = { sessionID: 8910, | |
channels: [] }; | |
let channelInfo1 = { channel: 1, | |
token: xyz, | |
aid: 0xABC }; | |
let channelInfo2 = { channel: 2, | |
token: abc, | |
aid: 0x123 }; | |
let channelInfo3 = { channel: 3, | |
token: def, | |
aid: 0x456 }; | |
let channelInfo4 = { channel: 4, | |
token: ghi, | |
aid: 0x789 }; | |
let channelInfo5 = { channel: 5, | |
token: jkl, | |
aid: 0x1011 }; | |
sessionInfo1.channels.push(channelInfo1); | |
sessionInfo1.channels.push(channelInfo2); | |
sessionInfo2.channels.push(channelInfo3); | |
sessionInfo2.channels.push(channelInfo4); | |
sessionInfo3.channels.push(channelInfo5); | |
targetInfo1.sessions.push(sessionInfo1); | |
targetInfo1.sessions.push(sessionInfo2); | |
targetInfo2.sessions.push(sessionInfo2); | |
let appInfo []; | |
appInfo.push(targetInfo1); | |
appInfo.push(targetInfo2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment