【文件属性】:
文件名称:phoenix_pubsub_vernemq:已淘汰-用于Phoenix框架的VerneMQMQTT pubsub适配器
文件大小:11KB
文件格式:ZIP
更新时间:2021-05-24 22:29:37
Elixir
凤凰城
一个用于VerneMQ PubSub适配器。
该适配器是为构建的,但应与任何MQTT服务器一起使用。
配置
为了在phoenix中使用VerneMQ pubsub适配器,请将其和vmq_commons作为密度添加到mix.exs文件中:
defp deps do
[{ :vmq_commons , git: " https://github.com/erlio/vmq_commons.git " , compile: " rebar compile " },
{ :phoenix_pubsub_vernemq , " ~> 0.0.3 " }],
end
请注意,您需要安装才能编译vmq_commons依赖项。
然后适当地配置您的端点:
config :my_app , MyApp . Endpoint ,
.. .
pubsub: [ name:
【文件预览】:
phoenix_pubsub_vernemq-master
----.travis.yml(317B)
----mix.exs(893B)
----config()
--------config.exs(1KB)
----test()
--------phoenix_pubsub_vernemq_test.exs(149B)
--------test_helper.exs(15B)
----.gitignore(34B)
----lib()
--------phoenix_pubsub_vernemq()
--------phoenix_pubsub_vernemq.ex(38B)
----README.md(2KB)
----LICENSE.txt(11KB)