Last active
January 2, 2020 20:18
-
-
Save neslinesli93/23bb70f1685d37a18d32f5da7c10f65b to your computer and use it in GitHub Desktop.
Add new websocket endpoint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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