Pub/Sub pattern with PostgreSQL's LISTEN/NOTIFY command
This is a simple chat-like program using pub-sub pattern, backed by PostgreSQL's LISTEN/NOTIFY command.
Publish
publish message to foo
channel from user nickname
.
$ python pub.py foo nickname
PUBLISH to channel #foo