Closed bcjat closed 3 years ago
same problem here
i read somwhere this can be solved using plain javascript , but how to do it in ionic react app
There has been no recent activity and this issue has been marked inactive.
same issue here, has this been resolved?
I'm submitting a ... [x] bug report [ ] feature request [ ] support request
Current behavior: When using types for
cordova-plugin-websocket-server
from@ionic-native/web-socket-server
shows following error.ERROR TypeError: window.cordova.plugins.wsserver[fnName] is not a function at Observable._subscribe (home-home-module-es2015.js:30) at Observable._trySubscribe (vendor-es2015.js:109405) at Observable.subscribe (vendor-es2015.js:109391) at HomePage.initServer (home-home-module-es2015.js:221) at Object.eval [as handleEvent] (HomePage.html:21) at handleEvent (vendor-es2015.js:74622) at callWithDebugContext (vendor-es2015.js:76241) at Object.debugHandleEvent [as handleEvent] (vendor-es2015.js:75876) at dispatchEvent (vendor-es2015.js:61709) at vendor-es2015.js:73554
the above error link to
node_modules > @ionic-native > web-socket-server > ngx > index.js:14:22
Expected behavior: Should start local socket server.
Steps to reproduce: clone repository and run on emulator, using debugger the error will be shown.
Related code:
Other information: full repository of sample app here
https://github.com/bcjat/local-web-socket.git
Ionic info: