I will provide more information.
I have one socket and it has two channels, that is, one should use use Phoenix.Socket and the other should use Phoenix.LiveView.Socket, am I right? is this the problem? Thanks
There is not enough information in this thread to solve the problem.
The dependency you are using are very loose with version requirements towards phoenix_live_view. {:phoenix_live_view, ">= 0.16.0", allow_pre: true}
So it could be a version issue also, but it would be better if you would create an example repo where you demonstrate the problem so it can be inspected.