Created
April 16, 2015 14:50
-
-
Save wende/fd3cbb542b9bb019a538 to your computer and use it in GitHub Desktop.
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
send(msg, date) -> | |
DB.add(msg, date) | |
poll(lastMsgDate) -> | |
return DB.getAll.filter( _.data > lastMsgDate) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment