We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 404876a commit b84440dCopy full SHA for b84440d
src/client.js
@@ -11,7 +11,7 @@ const CoCreateApi = {
11
12
init: function ({ name, endPoints, options }) {
13
this.register({ name, endPoints, options });
14
- if (options.socket !== false && !socket.sockets.size)
+ if (options && options.socket !== false && !socket.sockets.size)
15
socket.create({ prefix: 'api' });
16
},
17
0 commit comments