This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # | |
| # Chat server attempt with Ruby and EventMachine. | |
| # | |
| # TODO: | |
| # | |
| # - Prevent chat from acting on \n (pressing enters in chat) | |
| # - Handle (unexpected) disconnects properly (with unbind event). | |
| # - Implement proper leaving with /quit. |