Missing Paren in Example
Threw me for a while when the sample code didn't work. :)
This commit is contained in:
parent
31b14b78ac
commit
49f35c38d4
@ -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');
|
||||||
|
Reference in New Issue
Block a user