Last active
August 29, 2015 14:07
-
-
Save gritzko/b6a06d27627f37386c9d 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
TodoApp.prototype.initSwarm = function () { | |
this.storage = new Swarm.SharedWebStorage ('webst', {persistent:true}); | |
this.host = Swarm.env.localhost = new Swarm.Host (this.ssnid, '', this.storage); | |
this.wsServerUri = 'ws://'+window.location.host; | |
this.host.connect (this.wsServerUri, {delay: 50}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment