package
0.0.0-20210805150241-449d0e09d70b
Repository: https://github.com/project-flogo/websocket.git
Documentation: pkg.go.dev
# README
HTTP to WebSocket proxy
This recipe sends messages to a websocket
Installation
- Install Go
Testing
Start server:
go run main.go -server
Start the gateway:
go run main.go
Run:
curl -H "Content-Type: application/json" -d '{"message": "hello world"}' http://localhost:9096/message
You should see in the server terminal:
Received message({"message":"hello world"}) from the client(127.0.0.1:47890)