delay so other clients can connect to tcp server in test.spl

This commit is contained in:
Daniella / Tove 2024-09-09 17:04:35 +02:00
parent f86c55dd83
commit bb4d163b40

View file

@ -180,6 +180,8 @@ func main { int | with args ;
def client "localhost" 4075 StreamTypes:tcp:create =client def client "localhost" 4075 StreamTypes:tcp:create =client
1024 client:read-to-end:to-str println; 1024 client:read-to-end:to-str println;
" ^ this should say 'Hello!'" println; " ^ this should say 'Hello!'" println;
"you now have a chance to connect too: localhost:4075 - continuing in 5 seconds..." println;
5000 time:sleep;
100 100
} }