Open nelsonic opened 6 years ago
Got answer on Elixir Forum: https://elixirforum.com/t/phoenix-channels-warn-ignoring-unmatched-topic-topic-subtopic-how-to-avoid-terminal-warning-message/11509 from @kokolegorille π
Remove the default socket.channel
connection to "topic:subtopic"
in socket.js
file!
Open assets/js/socket.js
file and locate the following lines of code:
let channel = socket.channel("topic:subtopic", {})
channel.join()
.receive("ok", resp => { console.log("Joined successfully", resp) })
.receive("error", resp => { console.log("Unable to join", resp) })
Either comment them out or remove them. β
While running the Phoenix Chat Example App on
localhost
we are seeing this "noisy" warning:[warn] Ignoring unmatched topic "topic:subtopic" in ChatWeb.UserSocket
The warning just keeps being logged in the Terminal/Console indefinitely while the client is open ...
Tried searching Google / GitHub / StackOverflow / Elixir Forum ... π
but no obvious solution ... π
https://elixirforum.com/search?q=unmatched%20topic%20%22topic%3Asubtopic%22![image](https://user-images.githubusercontent.com/194400/34875726-5ffbdc96-f796-11e7-84ef-0f088fa419aa.png)
If you know how to remove this warning, please share! Thanks! π
Additional Info
v1.5.3
(latest)v1.3.0
(current/stable)v3.1.5