Adonis websocket integration with angular and ionic


#1

some example of how to implement the websockets of adonis with angular …
the websockets client of adonis can be integrated with angular or I have to write a web socket client


#2

The websocket client is written in plain Javascript. So it can work with any framework of your choice including Angular


#3

gracias @virk
but now I’m getting a very strange error when installing adonis websocket client “regeneratorRuntime is not defined”


#4

I still can not explain why I did not see this part in the documentation of aodnis websocket just add this line very soon I will be doing a tutorial how to implement websocket client in angular with observables
“import ‘babel-polyfill’;”


#5

i did

“import ‘babel-polyfill’;”

and now the error is

TypeError: t.resolve is not a function
   at Object.setNativePromise (http://localhost:8100/build/polyfills.js:3:18280)
   at L.configurable.L.set (http://localhost:8100/build/polyfills.js:3:23002)
   at module.exports (http://localhost:8100/build/vendor.js:123463:12)
   at $export (http://localhost:8100/build/vendor.js:123281:17)
   at Object.<anonymous> (http://localhost:8100/build/vendor.js:129634:1)
   at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
   at Object.<anonymous> (http://localhost:8100/build/vendor.js:127019:1)
   at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
   at Object.<anonymous> (http://localhost:8100/build/vendor.js:126880:1)
   at Object.<anonymous> (http://localhost:8100/build/vendor.js:126906:30)

im using @adonisjs/websocket-client on ionic 3


#6

please can you put your part of the code
https://www.npmjs.com/package/babel-polyfill?activeTab=versions
“babel-polyfill”: “^6.26.0”,