Socket TCP in Nativescript

665 views Asked by At

I create I wanted to create a plugin to create a tcp socket connection in Nativescript (there is not yet an online plugin that does this, only web sockets). Following this guide, I created a plugin and inserted the SwiftSocket library (in Swift) into the PodFile. Once imported and added to the project in NativeScript (Angular), I get an error:

ERROR Error: Could not find module 'nativescript-socket-tcp".

How can I solve the problem? Can i use Swift library in Nativescript?

0

There are 0 answers