shalvah / pusher-chatkit-laravel

Laravel wrapper for the Chatkit PHP SDK. ChatKit is shutting down 😕 - https://blog.pusher.com/narrowing-our-product-focus
22 stars 6 forks source link

Documentation is out of date with current pusher/chatkit SDK #3

Closed liamandrewmaddison closed 6 years ago

liamandrewmaddison commented 6 years ago

Great package and thank you for your time with this package!

Currently the documentation is incorrect with the latest chakit version.

All methods accept only one array param $options, which is contrary to what the documentation explains, for example:

$chatkitRoom = $this->chatkit->createRoom([
    'name' => 'Samuel and Jessica',
    'private' => true,
    'user_ids' => ["Jessica"],
    'creator_id' => "Samuel",
]);

instead of

$chatkitManager->createRoom('hc', ['name' => 'Cat Lovers']);

Same goes for all methods

shalvah commented 6 years ago

Thanks @liamm95 . Fixing in a bit.