Skip to content

Instantly share code, notes, and snippets.

@neslinesli93
Last active January 2, 2020 20:18
Show Gist options
  • Select an option

  • Save neslinesli93/23bb70f1685d37a18d32f5da7c10f65b to your computer and use it in GitHub Desktop.

Select an option

Save neslinesli93/23bb70f1685d37a18d32f5da7c10f65b to your computer and use it in GitHub Desktop.
Add new websocket endpoint
defmodule BreakoutexWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :breakoutex
socket "/live", Phoenix.LiveView.Socket, websocket: [timeout: 45_000]
# ...rest of the module
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment