Hi all, I am trying to integrate the NTRIP service...
# multiplatform
g
Hi all, I am trying to integrate the NTRIP services in a Kotlin Multiplatform project. I am not able to get the NWConnection into iosMain. is there any alternative solution for NWConnections, or how to import the NWConnection in iosMain? Please help me how to solve the blocker.
e
NWConnection is Swift-only and not available to Objective-C, so you can't use it from Kotlin either
r
As an alternative, you can use nw_connection_t and friends from objective-c.
Or if you prefer
NWConnection
, you can define an interface in Kotlin, write a Swift implementation that uses
NWConnection
, and pass it as a parameter from Swift to Kotlin.
g
Hi thank you finally I achieved with below video

https://www.youtube.com/watch?v=yVOrbjrfC7M

I got output : ICY 200 OK - it is NTRIP response. Thanks once again.