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

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