-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
message expiration not work #24
Comments
I have the same problem. Someone knows how to solve it? |
IOS or Android? |
Can u try this queue = new Queue(connection, { |
I have this problem in both platforms. On Android I chanced a variable in file RabbitMqQueue.java |
ok that's not the way to do it, i will take al look at this |
This example works on android: this.queue = new Queue(this.connection, { |
Is there any solution for IOS? |
Hello friend, do you know how to solve this error on IOS? It is very important! |
Can u show youre code |
Hi! Replace this code in node_modules/react-native-rabbit/ios/RCTReactNativeRabbitMq/RabbitMqQueue.m
and example for use:
|
import {
Connection,
Queue,
Exchange
} from 'react-native-rabbitmq';
let connection:Connection=null;
let queue:Queue;
let exchange:Exchange;
let mExchangeName="weixinFace";
let mCallFun=null;//回调函数
export function setCallFun(callFun) {
mCallFun=callFun;
}
export function connectRabbitMq(channel) {
const config = {
host: 'xxxxxx',
port: 5672,
username: 'xxxx', //your rabbitmq management username
password: 'xxxx', //your rabbitmq management password
virtualhost: '/',
};
}
export function closeRabbitMq() {
// connection.close();
}
export function sendMessage(message,channel) {
let properties ={expiration:1000};
exchange.publish(message,channel,properties);
}
queue ttl and exchange properties expiration not work ,please help me
The text was updated successfully, but these errors were encountered: