Skip to content

Commit b84440d

Browse files
committed
fix: options
1 parent 404876a commit b84440d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const CoCreateApi = {
1111

1212
init: function ({ name, endPoints, options }) {
1313
this.register({ name, endPoints, options });
14-
if (options.socket !== false && !socket.sockets.size)
14+
if (options && options.socket !== false && !socket.sockets.size)
1515
socket.create({ prefix: 'api' });
1616
},
1717

0 commit comments

Comments
 (0)