Files
socket.io/wrapper.mjs
Damien Arrachequesne e20d487ac0 fix: properly export the Socket class
Before this change, `require("socket.io-client").Socket` would return
"undefined".

Note: having access to the Socket class allows users to modify its
prototype.

Related: https://github.com/socketio/socket.io/issues/3726
2021-05-06 14:24:08 +02:00

7 lines
138 B
JavaScript

import io from "./build/index.js";
export const Manager = io.Manager;
export const Socket = io.Socket;
export { io };
export default io;