An application to greet a customer/user/guess on your event.
Just a simple backend that integrated with Socket.io you can use this simple application.
- Create (if you haven't) simple
Socket.ioserver. Just follow this - Create a handler for emit the data
Socket.ioclients (for this case, thisGreeterapp). - Set
Greeterenv configuration to connectSocket.ioserver. - Run both application (backend with socket.io server and
Greeterapp) - Hit your created handler with this format:
{
"name": "John Doe",
"totalGuess": 1,
"description": "Welcome to the party"
}
- Ta daaa! Greeter app will call your name
| Variables | Example | Description |
|---|---|---|
| SOCKETIO_HOST | http://127.0.0.1:9000 | Define where is socket.io located |