From 3600bb204b0084ef0f59bb93c133ceb9bcf72d56 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Sat, 2 May 2026 07:12:20 +0100 Subject: [PATCH] Set explicit max_frame_size on websocket --- lib/music_library_web/endpoint.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/music_library_web/endpoint.ex b/lib/music_library_web/endpoint.ex index 26202961..9a9f5b06 100644 --- a/lib/music_library_web/endpoint.ex +++ b/lib/music_library_web/endpoint.ex @@ -16,7 +16,10 @@ defmodule MusicLibraryWeb.Endpoint do ] socket "/live", Phoenix.LiveView.Socket, - websocket: [connect_info: [session: @session_options]], + # max_frame_size defaults to 10MB starting from websock_adapter 0.6.0, + # which we transitively depend on. + # See: https://github.com/phoenixframework/websock_adapter/pull/22 + websocket: [max_frame_size: 10_000_000, connect_info: [session: @session_options]], longpoll: [connect_info: [session: @session_options]] # Serve at "/" the static files from "priv/static" directory.