Since I'd like to provide a pull request for this package to use the pusher-php-server library that we (Pusher) officially support I don't think this change would integrate particularly well. Passing the serializer in as an option to the Pusher constructor would however be a possibility.