View Source Storex.Plug (storex v0.4.0)

Add Storex to your Plug application, to handle WebSocket connections.

Example for Phoenix Endpoint:

defmodule YourAppWeb.Endpoint do
  use Phoenix.Endpoint, otp_app: :your_app

  plug Storex.Plug

  # ...
end

Options

  • :path - The path to mount the Storex handler. Default is "/storex".