Open
Description
Hi,
This is a great package, and I have used it effectively with react native and iOS. However, now that react-native has support for the Websocket module, can this work for Android as well? And if so, it would be great to see some examples of it. With the following code, I get errors: `let ddpclient = new DDPClient({
url: 'ws://localhost:3000/websocket'
});
console.log('DDP', ddpclient);
ddpclient.connect((error, wasReconnect) => {
if (error) {
console.log('DDP connection error!');
return;
}
if (wasReconnect) {
console.log('Reestablishment of a connection');
}
console.log('Connected!');
});
ddpclient.subscribe('messages', [], ()=> {
console.log('messages complete:');
console.log(ddpclient.collections.messages);
});
ddpclient.on('message', (msg) => {
console.log('ddp message: ' + msg);
})`
Metadata
Assignees
Labels
No labels
Activity