I have installed the library via "npm install socket.io-client"
When I import the library I got some errors about “Failed to find module ‘socket.io-client’”
I tried following both method.
import * as socket from 'socket.io-client'; //can not find module, vscode crying about it var socket = require('socket.io-client'); // exception "failed to find module"
I was using this plugin https://www.npmjs.com/package/nativescript-socketio but i need
removeListener method and i was not able to achieve via this plugin.