Skip to content

Commit

Permalink
Fix error handling event parameter (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbenevides committed Jul 19, 2023
1 parent 8fe9df4 commit ed900f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ One reason this connection might fail is your account being over its' limits. Yo
```js
const pusher = new Pusher('app_key', { cluster: APP_CLUSTER });
pusher.connection.bind( 'error', function( err ) {
if( err.error.data.code === 4004 ) {
if( err.data.code === 4004 ) {
log('Over limit!');
}
});
Expand Down

0 comments on commit ed900f8

Please sign in to comment.