tcp-broadcast: Polishing

Wait for server to start listening before attempting to connect.
This commit is contained in:
Gary Russell
2018-11-19 18:42:41 -05:00
parent e7180b8725
commit 933dc91bd2
2 changed files with 21 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
== TCP Sample
== TCP Broadcast Sample
This sample demonstrates broadcasting a message received by a web controller to all connected TCP clients.
@@ -22,3 +22,6 @@ The TCP server listens on port 1234.
`foo from client# 1`
`foo from client# 3`
To shut down the application:
`curl http://localhost:8080/shutdown`