Skip to content

Commit

Permalink
fix: options
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Nov 28, 2023
1 parent 404876a commit b84440d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const CoCreateApi = {

init: function ({ name, endPoints, options }) {
this.register({ name, endPoints, options });
if (options.socket !== false && !socket.sockets.size)
if (options && options.socket !== false && !socket.sockets.size)
socket.create({ prefix: 'api' });
},

Expand Down

0 comments on commit b84440d

Please sign in to comment.