How to use socket io when I have the rest implemented in frontend and configured in my feathers, but when I am using the socket io connection and getting configured to the same feathers It is stating that only one default is allowed. I am using React here and also provide me a guide so that i can learn the feathers js like pdf, etc; pls do this help....
Can I use code in this format:
import React, { useEffect } from 'react';
import { feathers } from '@feathersjs/feathers';
import rest from '@feathersjs/rest-client';
import socketio from '@feathersjs/socketio-client';
import io from 'socket.io-client';
How to use socket io when I have the rest implemented in frontend and configured in my feathers, but when I am using the socket io connection and getting configured to the same feathers It is stating that only one default is allowed. I am using React here and also provide me a guide so that i can learn the feathers js like pdf, etc; pls do this help....
Can I use code in this format: import React, { useEffect } from 'react'; import { feathers } from '@feathersjs/feathers'; import rest from '@feathersjs/rest-client'; import socketio from '@feathersjs/socketio-client'; import io from 'socket.io-client';
const MyComponent = () => { useEffect(() => { // Create a Feathers app instance const app = feathers();
}, []); // Run this effect only once on component mount
return (
); };
export default MyComponent;