2016-07-23 101 views
0

我開始在Swift中使用RabbitMQ。我曾跟隨上github從RabbitMQ的庫中的示例代碼:無法使用Swift連接RabbitMQ

​​

我也得到了很多次這些錯誤:

Will start recovery for connection: <' Received connection: <'RMQConnection: 0x7fdb43c73670> disconnectedWithError: Error Domain=GCDAsyncSocketErrorDomain Code=7 "Socket closed by remote peer" UserInfo={NSLocalizedDescription=Socket closed by remote peer}RMQConnection: 0x7fdb43c73670>

而關於RabbitMQ的日誌我得到這個錯誤:

Error on AMQP connection <0.271.0> (172.19.0.1:53144 -> 172.19.0.4:5672, state: starting): PLAIN login refused: user '' - invalid credentials

我在哪裏可以定義憑證?我搜索了很多例子,但找不到任何東西。

回答