Skip to content

Release 2.2.0#46

Merged
sb8244 merged 5 commits intomasterfrom
release-2.1.1
Dec 31, 2024
Merged

Release 2.2.0#46
sb8244 merged 5 commits intomasterfrom
release-2.1.1

Conversation

@sb8244
Copy link
Member

@sb8244 sb8244 commented Dec 31, 2024

This is what my config for standalone PushEx looks like:

# config.exs

config :push_ex,
       PushEx.PubSub,
       adapter: Phoenix.PubSub.PG2,
       pool_size: 4

config :push_ex,
       PushExWeb.PushSocket,
       socket_impl: MyAppWeb.PushEx.Socket,
       endpoint: %{otp_app: :my_app, module: MyAppWeb.Endpoint},
       disconnect_sockets_on_shutdown: true

config :push_ex,
       PushExWeb.PushController,
       controller_impl: :not_implemented
# endpoint.ex

socket "/push_socket", PushExWeb.PushSocket,
    websocket: [timeout: 45_000],
    longpoll: false
  • PushEx added to started processes, before my main app's PubSub process
  • Normal setup otherwise

… provided

This allows you to bring your own Endpoint and not run anything through PushEx
@sb8244 sb8244 changed the title Release 2.1.1 Release 2.2.0 Dec 31, 2024
@sb8244 sb8244 merged commit dbd95d6 into master Dec 31, 2024
2 checks passed
@sb8244 sb8244 deleted the release-2.1.1 branch December 31, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant