Now accept all users whether authorize or not without log errors to allow anonymous usage
This commit is contained in:
		
							parent
							
								
									48de9a02a3
								
							
						
					
					
						commit
						411ce1343e
					
				| @ -35,12 +35,11 @@ var realtime = { | |||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| function onAuthorizeSuccess(data, accept) { | function onAuthorizeSuccess(data, accept) { | ||||||
|     accept(null, true); |     accept(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function onAuthorizeFail(data, message, error, accept) { | function onAuthorizeFail(data, message, error, accept) { | ||||||
|     if (error) throw new Error(message); |     accept(); //accept whether authorize or not to allow anonymous usage
 | ||||||
|     accept(null, true); |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function secure(socket, next) { | function secure(socket, next) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user