Verified Commit ee36b883 authored by Aral Balkan's avatar Aral Balkan
Browse files

Minor refactor of Vuex store namings to enhance intent

parent 8052c6da
...@@ -9,6 +9,7 @@ import axios from 'axios' ...@@ -9,6 +9,7 @@ import axios from 'axios'
export const state = () => {} export const state = () => {}
//
// Configure the Feathers application differently based on whether we’re running // Configure the Feathers application differently based on whether we’re running
// on the server or the client. On the client, configure it with Primus for // on the server or the client. On the client, configure it with Primus for
// web socket connections to the domain the app is running on. On the server, // web socket connections to the domain the app is running on. On the server,
...@@ -23,12 +24,12 @@ let _app = feathers().configure(auth()) ...@@ -23,12 +24,12 @@ let _app = feathers().configure(auth())
if (process.browser) { if (process.browser) {
// Configure for client-side use. // Configure for client-side use.
const socket = new Primus(location.href) const clientSideWebSocketViaPrimus = new Primus(location.href)
_app.configure(primus(socket)) _app.configure(primus(clientSideWebSocketViaPrimus))
} else { } else {
// Configure for server-side use. // Configure for server-side use.
const restViaAxios = rest('http://localhost:3030').axios(axios) const serverSideRestViaAxios = rest('http://localhost:3030').axios(axios)
_app.configure(restViaAxios) _app.configure(serverSideRestViaAxios)
} }
export const app = _app export const app = _app
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment