Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cra-template-brightsign-app/template/src/autorun.brs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ function main()
' Enable SSH
enableSSH()

' Initialize roNodeJs with path or correct filename, whether webpack is used or not.
node_js = CreateObject("roNodeJs", "sd:/dist/backend.js", {message_port: mp, node_arguments: ["--inspect=0.0.0.0:2999"], arguments: []})

' Create HTML Widget
widget = createHTMLWidget(mp)
widget.Show()

' Initialize roNodeJs with path or correct filename, whether webpack is used or not.
node_js = CreateObject("roNodeJs", "sd:/dist/backend.js", {message_port: mp, node_arguments: ["--inspect=0.0.0.0:2999"], arguments: []})

'Event Loop test
while true
Expand Down Expand Up @@ -85,4 +85,4 @@ function enableSSH()

regSSH.Flush()

end function
end function
9 changes: 5 additions & 4 deletions cra-template-brightsign-dashboard/template/src/autorun.brs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ function main()
enableLDWS()
' Enable SSH
enableSSH()
' Create HTML Widget
widget = createHTMLWidget(mp)
widget.Show()

' Initialize roNodeJs with path or correct filename, whether webpack is used or not.
node_js = CreateObject("roNodeJs", "sd:/dist/backend.js", {message_port: mp, node_arguments: ["--inspect=0.0.0.0:2999"], arguments: []})

' Create HTML Widget
widget = createHTMLWidget(mp)
widget.Show()

'Event Loop
while true
msg = wait(0,mp)
Expand Down Expand Up @@ -84,4 +85,4 @@ function enableSSH()

regSSH.Flush()

end function
end function