mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
15 lines
432 B
JavaScript
15 lines
432 B
JavaScript
const Socket = require("./socket");
|
|
|
|
module.exports = (uri, opts) => new Socket(uri, opts);
|
|
|
|
/**
|
|
* Expose deps for legacy compatibility
|
|
* and standalone browser access.
|
|
*/
|
|
|
|
module.exports.Socket = Socket;
|
|
module.exports.protocol = Socket.protocol; // this is an int
|
|
module.exports.Transport = require("./transport");
|
|
module.exports.transports = require("./transports/index");
|
|
module.exports.parser = require("engine.io-parser");
|