web-irc icon indicating copy to clipboard operation
web-irc copied to clipboard

Create test server

Open akavlie opened this issue 14 years ago • 0 comments

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

akavlie avatar Nov 07 '11 04:11 akavlie