Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lifesinger committed Aug 14, 2012
1 parent d6cebe9 commit c368b55
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/plugins/plugin-reload.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
* - ?seajs-reload=8000
* - ?seajs-reload=192.168.1.2:8000
*
* the default request location is localhost:8000
* The default request location is localhost:8000
*
* You need a reload server that supports it.
* The server should watch the file changes, and sent a "update" message.
*
* For example::
* For example:
*
* var io = require('socket.io').listen(8000)
* io.sockes.on('connection', function(socket) {
* io.sockets.on('connection', function(socket) {
* // if (fileChanged) {
* socket.emit('update', {message: 'file changed'})
* // }
Expand All @@ -38,4 +38,5 @@ define('seajs/plugin-reload', [], function(require) {
location.reload()
})
})

});

0 comments on commit c368b55

Please sign in to comment.