Skip to content

Instantly share code, notes, and snippets.

View saitharunsai's full-sized avatar

Sai Tharun saitharunsai

View GitHub Profile
@saitharunsai
saitharunsai / public-stun-list.txt
Created December 24, 2023 15:55 — forked from mondain/public-stun-list.txt
Public STUN server list
23.21.150.121:3478
iphone-stun.strato-iphone.de:3478
numb.viagenie.ca:3478
s1.taraba.net:3478
s2.taraba.net:3478
stun.12connect.com:3478
stun.12voip.com:3478
stun.1und1.de:3478
stun.2talk.co.nz:3478
stun.2talk.com:3478
//////// Send push notifications ///////
Parse.Cloud.define("sendPush", async (request) => {
var userQuery = new Parse.Query(Parse.User);
userQuery.equalTo("objectId", request.params.receiverId);
// Find devices associated with these users
var pushQuery = new Parse.Query(Parse.Installation);
pushQuery.matchesQuery('user', userQuery);