Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stateless server api #9

Merged
merged 1 commit into from
May 7, 2015
Merged

Stateless server api #9

merged 1 commit into from
May 7, 2015

Conversation

feyzo
Copy link
Contributor

@feyzo feyzo commented Apr 24, 2015

  • Snapshot support
  • Unique request id
  • Unsubscribe methods
  • Event queue

@feyzo feyzo changed the title Added snapshot support, unique request id, unsubscribe methods Stateless server api Apr 24, 2015
@@ -278,16 +278,41 @@ module.exports = function (simulation, db) {
return res.status(400).send({ name: 'error.parsing.json', data: { message: 'Malformed event body.' }});
}

sendEvent(instanceId, event, function (err, nextConfiguration) {
if (!util.IsOk(err, res)) return;
var queuedEvents = eventQueue[instanceId] = eventQueue[instanceId] || [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbeard4 jbeard4 merged commit 1aefaef into master May 7, 2015
@jbeard4 jbeard4 deleted the stateless branch May 7, 2015 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants