Skip to content
JavaScript library for Syncro
JavaScript
Latest commit 0b40c43 Jul 12, 2010 @maccman fix link
Failed to load latest commit information.
MIT-LICENSE add MIT license Jul 11, 2010
README.markdown fix link Jul 12, 2010
jquery.js add README Jul 11, 2010
superclass.js first commit Jul 11, 2010
supermodel.js first commit Jul 11, 2010
supermodel.marshal.js add README Jul 11, 2010
syncro.js first commit Jul 11, 2010

README.markdown

This is the JavaScript client library to syncro

Syncro-js opens a WebSocket connection to your Syncro server and will sync state between the two.

Examples:

<script src="jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="superclass.js" type="text/javascript" charset="utf-8"></script>
<script src="supermodel.js" type="text/javascript" charset="utf-8"></script>
<script src="jquery.js" type="text/javascript" charset="utf-8"></script>

<script type="text/javascript" charset="utf-8">
  // Model
  var User = SuperModel.setup("User");
  User.attributes = ["name"];

  User.extend(SuperModel.Marshal);
  User.extend(Syncro.Model);

  // Connection
  Syncro.afterConnect(function(){
    console.log("Connected");
  });

  Syncro.connect("ws://syncro_server");
</script>

For information on SuperClass visit its project page.

For information on SuperModel visit its project page.

Something went wrong with that request. Please try again.