yomorun / presencejs

Edge Infra for realtime web applications, geo-distributed architecture.
https://presence.js.org
14 stars 3 forks source link

When creating a presence, should check the url arguments the createPresence function received. #1

Closed Viskeyy closed 8 months ago

Viskeyy commented 9 months ago

When using the createPresence method in presencejs, if the url parameter passed is undefined, this error occurs:

adaa4609-3cf7-4ec6-937c-05b5e1351e0d

The error is caused by this code:

f8bc89b6-e705-4616-9818-6608ac0831c6

The createPresence function should judge the parameters it receives so that it doesn't get the same kind of error as above.