-
Notifications
You must be signed in to change notification settings - Fork 4
strob/smssage
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
collaborative sms autoresponder % node smssage.node.js will create a gateway (eg. for SMSSync Android App) and a webservice to determine its responses to text messages. nb: you must edit io.connect with a real url to deploy beyond localhost. (nb: there are other issues to consider before deploying beyond localhost.) a new smssage app is initialized with two tabs: 1. setup(ctx): called on startup 2. dispatch(ctx,msg): called on new messages the context object is passed to each dispatch call, so that data might perist and be communicable. messages are evaluated on the server, as well as each client. any string returned by the server is sent back to sms sender. a flag, `ctx.is_server,` is available so that client-side code can be isolated from server code.