Skip to content

Commit

Permalink
Fix issue with ws vs wss
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Oct 29, 2019
1 parent c31d4f0 commit e1c838d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,17 @@ func runCreate(cmd *cobra.Command, _ []string) error {

fmt.Printf("Host: %s, status: %s\n", hostRes.ID, hostRes.Status)

for i := 0; i < 500; i++ {
max := 500
for i := 0; i < max; i++ {
time.Sleep(1 * time.Second)

hostStatus, err := provisioner.Status(hostRes.ID)
if err != nil {
return err
}

fmt.Printf("Host: %s, status: %s\n", hostStatus.ID, hostStatus.Status)
fmt.Printf("[%d/%d] Host: %s, status: %s\n",
i+1, max, hostStatus.ID, hostStatus.Status)

if hostStatus.Status == "active" {
if len(remoteTCP) == 0 {
Expand Down Expand Up @@ -160,7 +162,7 @@ Command:
Command:
export TCP_PORTS="8000"
export LICENSE=""
inlets-pro client --connect "ws://%s:%d/connect" \
inlets-pro client --connect "wss://%s:%d/connect" \
--token "%s" \
--license "$LICENSE" \
--tcp-ports 8000
Expand Down

0 comments on commit e1c838d

Please sign in to comment.