Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

action cable nuxtjs

import store from './store';
import Vue from 'vue';
import ActionCableVue from 'actioncable-vue';

Vue.use(ActionCableVue, {
  debug: true,
  debugLevel: 'all',
  connectionUrl: process.env.WEBSOCKET_HOST,
  connectImmediately: true,
  store
});
Source by github.com #
 
PREVIOUS NEXT
Tagged: #action #cable #nuxtjs
ADD COMMENT
Topic
Name
1+1 =