Skip to content

Instantly share code, notes, and snippets.

@lightsofapollo
Created April 23, 2012 21:45
Show Gist options
  • Save lightsofapollo/2474079 to your computer and use it in GitHub Desktop.
Save lightsofapollo/2474079 to your computer and use it in GitHub Desktop.
Marionette backend api
backend.send({
type: 'newSession',
to: 'connection1'
}, function(err, data){
//err for connection issues not errors sent by the server
//data is the json response.
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment