Skip to content

Instantly share code, notes, and snippets.

View adityamenon's full-sized avatar

Aditya MP adityamenon

View GitHub Profile
@adityamenon
adityamenon / test.js
Created March 27, 2016 15:46
Suggested signup code on deepstream.io
$scope.execSignup = function () {
var fullName = $scope.signupForm.FullName,
username = $scope.signupForm.Username,
password = $scope.signupForm.Password;
dsanon.on('error', function (err) {
console.log("Anonymous Deepstream connection error: ", err);
});
var newUserRecord = dsanon.record.getRecord("user/"+username)