- Notifications
You must be signed in to change notification settings - Fork0
risyadaji/Greeter
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
An application to greet acustomer
/user
/guess
on your event.Just a simple backend that integrated withSocket.io you can use this simple application.
- Create (if you haven't) simple
Socket.io
server. Just followthis - Create a handler for emit the data
Socket.io
clients (for this case, thisGreeter
app). - Set
Greeter
env configuration to connectSocket.io
server. - Run both application (backend with socket.io server and
Greeter
app) - 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 |