UNPKG

todomvc

Version:

> Helping you select an MV\* framework

25 lines (20 loc) 555 B
/*global $, ss*/ (function () { 'use strict'; // This file automatically gets called first by SocketStream and must always exist // Make 'ss' available to all modules and the browser console window.ss = require('socketstream'); ss.server.on('disconnect', function () { console.log('Connection down :-('); }); ss.server.on('reconnect', function () { console.log('Connection back up :-)'); }); ss.server.on('ready', function () { // Wait for the DOM to finish loading $(function () { // Load app require('/app'); }); }); })();