limit rtc to parties

This commit is contained in:
Matteo Pagliazzi
2016-09-05 17:54:24 +02:00
parent 4b6af73a1b
commit 6792464fbf
2 changed files with 2 additions and 4 deletions

View File

@@ -327,7 +327,7 @@ api.pusherAuth = {
// Channel names are in the form of {presence|private}-{group|...}-{resourceId}
let [channelType, resourceType, ...resourceId] = channelName.split('-');
if (['presence'].indexOf(channelType) === -1) { // presence is used only for parties, private for guilds too
if (['presence'].indexOf(channelType) === -1) { // presence is used only for parties, private for guilds
throw new BadRequest('Invalid Pusher channel type.');
}