Closed niklasf closed 13 years ago
I realise most JavaScript projects are 4 spaces, I actually use 2 spaces a lot because it's easier to read in my blog posts (I don't really have a preference though).
I like the idea of the callbacks. I'll take a look at this locally then merge.
I've merged this in
Hi, another pull request. You might want to cherry pick some or apply all. Grouping them a little:
Coding style
708edaa2 Fixes a typo in my regular expression 961a1e54 Adjust indendation of my testcase to two spaces which you use in your other files
Callbacks
Optional callbacks for server.start and close. I found this useful when I required a server. ee593f5c for server.start() 096ff460 for server.close()
Testcase
194d0fe4 You only want to cherry-pick it if nodeunit (npm install nodeunit) is ok. The test passes here.
-- Kind regards, Niklas