Start_SignallingServer.ps1 733 B

1234567891011121314151617181920
  1. # Copyright Epic Games, Inc. All Rights Reserved.
  2. . "$PSScriptRoot\Start_Common.ps1"
  3. set_start_default_values "n" "y" # Set both TURN and STUN server defaults
  4. use_args($args)
  5. print_parameters
  6. $peerConnectionOptions = "{ \""iceServers\"": [{\""urls\"": [\""stun:" + $global:StunServer + "\""]}] }"
  7. $ProcessExe = "platform_scripts\cmd\node\node.exe"
  8. $Arguments = @("cirrus", "--peerConnectionOptions=""$peerConnectionOptions""", "--PublicIp=$global:PublicIp")
  9. # Add arguments passed to script to Arguments for executable
  10. $Arguments += $global:CirrusCmd
  11. Push-Location $PSScriptRoot\..\..\
  12. Write-Output "Running: $ProcessExe $Arguments"
  13. Start-Process -FilePath $ProcessExe -ArgumentList "$Arguments" -Wait -NoNewWindow
  14. Pop-Location