@ -56,8 +56,9 @@ This is the constructor for `cmdsrv` and should be invoked as `new cmdsrv()`.
#### options
* `port` - which port to bind to when calling `start` (default: `3223`)
* `delimiter` - which character to split each command on (default: `" "`)
* `caseSensitive` - whether or not the commands should be case sensitive (default: `false`)
* `tokenizer` - a `function(line)` which returns a list of tokens for the line (default: `line.split(this.delimiter)`
* `bound` - which character is used as word boundaries (default: `'"'`)
* `caseSensitive` - whether or not the commands should be case sensitive, this means that "GET" and "get" will both be emitted as "get" (default: `false`)
* `tokenizer` - a `function(line, delimiter, bound)` which returns a list of tokens for the line, if `tokenizer` is undefined then no tokenization will occur and only the `line` event will be emitted (default: see `lib/tokenizer.js`)
### cmdsrv.on(command, handler)
Received commands are emitted to any handlers listening for that command.