Merge pull request #37 from ceojasonnichols/patch-1

Missing Paren in Example
This commit is contained in:
José F. Romaniello 2013-11-21 03:32:34 -08:00
commit 2bf410f130

View File

@ -26,7 +26,7 @@ io.set('authorization', passportSocketIo.authorize({
store: sessionStore, // we NEED to use a sessionstore. no memorystore please store: sessionStore, // we NEED to use a sessionstore. no memorystore please
success: onAuthorizeSuccess, // *optional* callback on success - read more below success: onAuthorizeSuccess, // *optional* callback on success - read more below
fail: onAuthorizeFail, // *optional* callback on fail/error - read more below fail: onAuthorizeFail, // *optional* callback on fail/error - read more below
}); }));
function onAuthorizeSuccess(data, accept){ function onAuthorizeSuccess(data, accept){
console.log('successful connection to socket.io'); console.log('successful connection to socket.io');