2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00

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
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');