Vuex Logux
Logux is a new way to connect client and server. Instead of sending
HTTP requests (e.g., AJAX and GraphQL) it synchronizes log of operations
between client, server, and other clients.
Documentation: logux.io
This repository contains Vuex compatible API on top of Logux Client.
Install
npm install @logux/vuex
Usage
See documentation for Logux API.
import Vue from 'vue'
import Vux from 'vuex'
import { createLogux } from '@logux/vuex'
Vue.use(Vuex)
const Logux = createLoguxStore({
credentials: userToken,
subprotocol: '1.0.0',
server: 'wss://example.com:1337',
userId: userToken
})
export default new Logux.Store({
state: {},
mutations: {},
actions: {},
modules: {}
})