web-irc
web-irc copied to clipboard
Create test server
It would be nice to have a mock server for testing the app (client side), to alleviate the need to connect to a real IRC server and such every time a change is made. Think I've worked out a reasonable way to do so:
- Enter test mode at /test and/or with a hardcoded test IRC server name ('wi-test' or some such)
- App watches for that condition, and initiates test method
- Said test method mocks all supported socket.on/socket.emit events to return canned responses, echo input, or whatever makes sense for that method