-
-
Save Mattchewone/fa4152f6e8240dfcdd2a04d4b6905d2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import feathers from '@feathersjs/feathers' | |
import socketio from '@feathersjs/socketio-client' | |
import auth from '@feathersjs/authentication-client' | |
import io from 'socket.io-client' | |
export const host = process.env.API_HOST || 'http://localhost:3030' | |
const socket = io(host, { transports: ['websocket'] }) | |
const feathersClient = feathers() | |
.configure(socketio(socket)) | |
.configure(auth({ storage: window.localStorage })) | |
export default feathersClient |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment