

The Socket.IO client is compatible with bundlers like webpack or browserify.

By setting bug = 'socket.io-client:socket', any event received by the client will be printed to the console.įor production, please use the socket.io.min.js bundle, which is an optimized build excluding the debug package. You can find more information here.ĭuring development, we recommend using the socket.io.js bundle. The debug package allows to print debug information to the console. Production version, without debug and with the msgpack parser jsDelivr: unpkg: are several bundles available: Name.Socket.IO is also available from other CDN: Io will be registered as a global variable: 4.4.1 (Jan 2022): GitHub release / diff / npmīy default, the Socket.IO server exposes a client bundle at /socket.io/socket.io.js.Just link to these files in your HTML along with the latest jQuery. 4.5.0 (Apr 2022): GitHub release / diff / npm UI tasks into your own build tools, or using a CDN see our recipes section.

