diff --git a/package.json b/package.json index d782847..a35294e 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "license": "MIT", "dependencies": { "async": "^2.6.0", + "class-is": "^1.0.0", "data-queue": "0.0.3", "debug": "^3.1.0", "interface-connection": "^0.3.2", diff --git a/src/index.js b/src/index.js index 879b310..6786d38 100644 --- a/src/index.js +++ b/src/index.js @@ -12,6 +12,7 @@ const utils = require('./utils') const Listener = require('./listener') const cleanUrlSIO = utils.cleanUrlSIO const mafmt = require('mafmt') +const withIs = require('class-is') class WebsocketStar { /** @@ -131,4 +132,4 @@ class WebsocketStar { } } -module.exports = WebsocketStar +module.exports = withIs(WebsocketStar, { className: 'WebsocketStar', symbolName: '@libp2p/js-libp2p-websocket-star/websocketstar' })