Updated Socket.IO code example

pull/2/head
Sahat Yalkabov 2014-05-13 18:37:30 -04:00
parent 72d16f46ef
commit 915a655ae6
1 changed files with 1 additions and 1 deletions

View File

@ -970,7 +970,7 @@ If you want to stick all your JavaScript inside templates, then in `layout.jade`
your main template file, add this to `head` block.
```jade
script(src='/socket.io/socket.io.js?v=#{cacheBuster}')
script(src='/socket.io/socket.io.js')
script.
var socket = io.connect(window.location.href);
socket.on('greet', function (data) {