diff --git a/lib/chess_web/channels/user_socket.ex b/lib/chess_web/channels/user_socket.ex index c5dead9..ea69752 100644 --- a/lib/chess_web/channels/user_socket.ex +++ b/lib/chess_web/channels/user_socket.ex @@ -6,10 +6,6 @@ defmodule ChessWeb.UserSocket do ## Channels channel "game:*", ChessWeb.GameChannel - ## Transports - transport :websocket, Phoenix.Transports.WebSocket - # transport :longpoll, Phoenix.Transports.LongPoll - # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into diff --git a/lib/chess_web/endpoint.ex b/lib/chess_web/endpoint.ex index b93a5a5..6a28def 100644 --- a/lib/chess_web/endpoint.ex +++ b/lib/chess_web/endpoint.ex @@ -5,7 +5,8 @@ defmodule ChessWeb.Endpoint do plug Phoenix.Ecto.SQL.Sandbox end - socket "/socket", ChessWeb.UserSocket + socket "/socket", ChessWeb.UserSocket, + websocket: true # Serve at "/" the static files from "priv/static" directory. #