Send and receive messages (broadcast or unicast with floID) through web socket
| chatRoomWSServer | ||
| chatRoomWSServer.c | ||
| index.html | ||
| mongoose.c | ||
| mongoose.h | ||
| README.md | ||
flo_chatRoom
Web Socket based chat room for FLO
There are 2 types of messages :
- unicast - sends message only to a FLO_ID
- broadcast - sends message to all in the chatroom
To install :
gcc chatRoomWSServer.c mongoose.c -o chatRoomWSServer
To run the server :
./chatRoomWSServer
Instructions :
- Open
127.0.0.1:8000in your web browser - To bind FLO_ID :
$self_FLO_ID - To unicast message to a FLO_ID :
>receiverFLO_ID message - To broadcast :
message
Note : You can receive unicast only if a FLO_ID is bound