Skip to content

Conversation

@WillSewell
Copy link
Contributor

I didn't like how the Pusher object was being passed down so deep in the call stack, when the functions that were being used didn't really depend on anything in the Pusher object. This PR makes channelSharedSecret and isEncryptedChannel plain functions in util.js. This means the Pusher object does not need to be passed to encrypt() and getSocketSignature().

It's a pretty minor change and I don't feel too strongly, so feel free to discount.

Makes channelSharedSecret and isEncryptedChannel plain functions
in util.js. This means the Pusher object does not need to be
passed to encrypt() and getSocketSignature().
@WillSewell WillSewell force-pushed the reduce-dependency-on-pusher-object branch from fb825db to 43dd857 Compare November 21, 2018 17:18
@WillSewell
Copy link
Contributor Author

Not worth it anymore.

@WillSewell WillSewell closed this Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants