Missing Paren in Example

Threw me for a while when the sample code didn't work. :)
This commit is contained in:
Jason Nichols 2013-11-19 22:18:44 -06:00
parent 31b14b78ac
commit 49f35c38d4

View File

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