socket.io
socket.io copied to clipboard
Specify transport type or autocompletion.
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
import { io } from "socket.io-client";
const newSocket = io(process.env.HELLO, {
withCredentials: true,
transports: [], // something...
});
Describe the solution you'd like A clear and concise description of what you want to happen. I was able to specify specific transports. I think it would be more convenient if it was auto-completed.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. A different type instead of string[] Additional context Add any other context or screenshots about the feature request here.