Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 860 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 860 Bytes

nsq_chatroom

A Go program which implements a simple chat room based on NSQ. This application is my first program under Go. It is based on nsq, which is a message distribution system developed by Go. It supports to explicitly bind to one nsqd and communicate with each other through the same 'room', which is corresponding to a topic in nsq. TODO: Add supporting of nsqlookupd, so that we could connect to more nsqd automatically.

Requirement

  1. latest NSQ software, e.g. 0.2.27
  2. Go 1.2.1

User Guide

  1. start nsqd
  2. start nsq_chatroom, specified with nsqd tcp port
  3. CLI: r - user name
    e - enter a room
    l - leave
    s - say something h - help
    q - quit