phoenix_client
phoenix_client copied to clipboard
Elixir Phoenix Client for Channels
Absinthe has a unique protocol on top of pheonix wss to support GraphQl subscriptions, in that each subscription document sent creates a shadow channel that the client then has to...
This PR solves #39 On `:normal` stop, the child processes are not terminated. Let's trap the Socket process exit and manually stop the transport child to avoid dangling processes.
I'm making an app that repeats connect/terminate multiple times without closing the app. And the number of processes increased for unknown reasons. As a result of checking the log, `webclient_socket`...
Makes it easier and clear for newcomers to use and install the library.
While deploying my phoenix app, i realized the Socket will reconnect, but each channel that is open will not be rejoined. I can still use the Channel pid, but the...
The documentation in the README suggests that `PhoenixClient.Socket.start_link/1` returns a connected socket that you can use right away to join a channel. That does not seem to be the case,...
If the channel disconnects (`phx_close` or `phx_error`), the channel process does not close, and the socket process don't remove it from the state, so the socket thinks that it's subscribed...
How to test a GenServer using PhoenixClient without stumbling on Ecto Sandbox concurrency? `** (MatchError) no match of right hand side value: {:error, {{:badmatch, :already_shared}, [{Ecto.Adapters.SQL.Sandbox, :"-start_owner!/2-fun-0-", 3, [file: 'lib/ecto/adapters/sql/sandbox.ex',...