Commit 35617c17 authored by Peter Müller's avatar Peter Müller

Updates delayed init example

parent e5468c0b
Pipeline #290 passed with stages
in 1 minute and 46 seconds
......@@ -61,15 +61,17 @@ rhs.on('data', (message:RH_ReceivedMessage) => {
});
});
// Rsun the init and catch possible error
// Print info
console.log('isInitDone =', rhs.isInitDone());
// Run the init and catch possible error
rhs.init()
.then(() => {
console.log('init done');
// Print some info
console.log('isInitDone =', rhs.isInitDone());
console.log('Server example running.');
console.log('Now start the client example...');
})
.catch((err) => {
console.log('init error: ', err);
});
// Print some info
console.log('Server example running.');
console.log('Now start the client example...');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment