Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/travisghansen/fanout
A simple fanout pubsub message server
https://github.com/travisghansen/fanout
Last synced: 18 days ago
JSON representation
A simple fanout pubsub message server
- Host: GitHub
- URL: https://github.com/travisghansen/fanout
- Owner: travisghansen
- License: mit
- Created: 2011-12-01T18:17:34.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2016-12-07T04:11:12.000Z (almost 8 years ago)
- Last Synced: 2024-08-02T12:23:54.711Z (3 months ago)
- Language: C
- Homepage:
- Size: 49.8 KB
- Stars: 62
- Watchers: 9
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - travisghansen/fanout - A simple fanout pubsub message server (others)
README
Fanout is meant to creat a simple pubsub server to handle sending messages and
receiving messages on different channels.Protocol:
ping - replies with current timestamp on the server
info - replies with some basic info about the server
subcribe
unsubscribe
announceEach request sent to the server must end with a \n. This means neither
nor can contain a \n itself directly (of course all of
them can be encoded ie: base64).must not contain the '!' character or spaces.
can contain the '!' characterEach message announced on a channel will be sent out as:
!
ending with \n to all the subscribed clients.
2 special channels are automatically created and should not be used.
all - every client connected to the service is subscribed to this channel
debug - is used to send back messages to individual clients, for example
upon connection "debug!connected..." is sent to confirm connection.