Update docusaurus/docs/Flutter/guides/migration_guide_2_0.mdx

Co-authored-by: Reuben Turner <groovinchip@gmail.com>
This commit is contained in:
Deven Joshi
2021-07-16 20:41:33 +05:30
committed by GitHub
parent d62e9a81b0
commit ac27b9bc2b
@@ -255,7 +255,7 @@ remedy the issues:
1) Change over the constructor of `connectUserWithProvider()` to the new format.
2) We added more nuance to `disconnectUser()` by adding two new methods - one to close the connection
and the other to disconnect the user. This allows more fine-grained control for diconnection.
and the other to disconnect the user. This allows more fine-grained control of disconnection.
* `client.closeConnection()` -> for closing user websocket connection.
* `client.disconnectUser()` -> for disconnecting user and resetting client state.