Files
spring-integration-samples/basic/tcp-broadcast
Spring Operator 4f48dce420 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were fixed successfully.

* http://www.apache.org/licenses/LICENSE-2.0.txt migrated to:
  https://www.apache.org/licenses/LICENSE-2.0.txt ([https](https://www.apache.org/licenses/LICENSE-2.0.txt) result 200).
* http://projects.spring.io/spring-integration migrated to:
  https://projects.spring.io/spring-integration ([https](https://projects.spring.io/spring-integration) result 301).
* http://repo.spring.io/libs-milestone migrated to:
  https://repo.spring.io/libs-milestone ([https](https://repo.spring.io/libs-milestone) result 302).
* http://repo.spring.io/libs-snapshot migrated to:
  https://repo.spring.io/libs-snapshot ([https](https://repo.spring.io/libs-snapshot) result 302).
* http://repo.spring.io/libs-staging-local migrated to:
  https://repo.spring.io/libs-staging-local ([https](https://repo.spring.io/libs-staging-local) result 302).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0
* http://maven.apache.org/xsd/maven-4.0.0.xsd
* http://www.w3.org/2001/XMLSchema-instance
2019-03-06 10:03:19 -05:00
..
2018-11-19 18:42:41 -05:00
2019-03-06 10:03:19 -05:00
2018-11-19 18:42:41 -05:00

== TCP Broadcast Sample

This sample demonstrates broadcasting a message received by a web controller to all connected TCP clients.

`curl -X POST http://localhost:8080/broadcast/foo` will send 'foo' to 5 connected clients.

The TCP server listens on port 1234.


`2018-11-19 12:01:48.546  INFO 98411 --- [           main] com.example.TcpBroadcastApplication      : Started TcpBroadcastApplication in 1.904 seconds (JVM running for 2.345)`
`connected! from client# 5`
`connected! from client# 4`
`connected! from client# 3`
`connected! from client# 2`
`connected! from client# 1`

`curl -X POST http://localhost:8080/broadcast/foo`

`foo from client# 4`
`foo from client# 5`
`foo from client# 2`
`foo from client# 1`
`foo from client# 3`

To shut down the application:

`curl http://localhost:8080/shutdown`