statamic / collaboration

Real-time, multi-user editing with Statamic via websockets
https://statamic.com/addons/statamic/collaboration
33 stars 12 forks source link

Doesn't work if site handle has dots) #88

Closed lotarbo closed 9 months ago

lotarbo commented 9 months ago

Hello, I use domain as site handle. And i have 403 error on broadcasting/auth I think it because method channelNameMatchesPattern returns false This is what i have

$channel = entry.c3377fe3-0335-4f7f-9827-36228c855b29.example.com
$pattern = entry.{id}.{site}

Statamic 4.25.0

lotarbo commented 9 months ago

if i modify from this.channelName = `${reference}.${this.container.site}\`; to this.channelName = `${reference}.${this.container.site.replaceAll('.','_') }`; it works)