diff --git a/index.js b/index.js index 94b86dd..ca7294b 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ const my = { listeners: {} } -module.exports={ +export default { initSocket(url, reconnect=false){ if (!my.socket || my.socket.readyState!==my.socket.OPEN && typeof(url)==='string') { console.log('WebSocket connecting...')