[Vuejs]-TypeError after Vue.use while installation via <script>

0👍

Need to use VueNativeSock.default instead of VueNativeSock. Installation of vue-native-script plugin from CDN is undocumented yet.

Vue.use(VueNativeSock, 'wss://localhost/ws/current-orders/1', {
  reconnection: true,
  reconnectionAttempts: 5,
  reconnectionDelay: 3000,
  format: 'json',
});

Leave a comment