Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<script src=''></script>
<script src=''></script>
<script type="text/javascript">
var db = new Firebase('');
$('#send-button').click(function () {
var message = $('#text-message').val();
db.push({ message: message });
db.on('child_added', function(snapshot) {
var data = snapshot.val();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment