Created
October 29, 2020 17:14
-
-
Save indatawetrust/f118b92aaff271853a0c6acebc44ea7f 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 io from 'socket.io-client'; | |
import feathers from '@feathersjs/feathers'; | |
import socketio from '@feathersjs/socketio-client'; | |
import auth from '@feathersjs/authentication-client'; | |
const URL = 'http://localhost:3030'; | |
const socket = io(URL); | |
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
npm i @feathersjs/feathers @feathersjs/socketio-client socket.io-client@2 @feathersjs/authentication-client -S