Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

253
Views
¿Puedo enviar datos después de cada segundo (reactivo) de WKWebView a nativo en Swift?

Estoy creando una Vista que muestra una página web local que también tiene estilos y JavaScript usando WKWebView. Quiero enviar datos cada segundo desde WebView usando node js como este

 const timerEventEmitter = new EventEmitter(); timerEventEmitter.emit("update"); let currentTime = 0; // This will trigger the update event each passing second setInterval(() => { currentTime++; timerEventEmitter.emit('update', currentTime); }, 1000); timerEventEmitter.on('update', (time) => { console.log('Message Received from publisher'); console.log(`${time} seconds passed since the program started`); });

¿Puedo enviar el registro {time} seconds passed since the program started a la aplicación nativa de ios, o enviar datos usando reaccionar así?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puede usar socket.io para que el servidor envíe datos a la aplicación webview.

Eche un vistazo al sitio web de inicio de socket.io: https://socket.io/get-started/chat

Dígale si tiene preguntas.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!