Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Web Sockets

Uriel Salischiker edited this page Jan 23, 2017 · 4 revisions

###You can use websockets to get live notifications from the curse app

  • Open a websocket to wss://notifications-na-v1.curseapp.net/

  • Send this payload to authenticate with Curse:

{
	"TypeID":-2101997347,
	"Body":{
		"CipherAlgorithm":0,
		"CipherStrength":0,
		"ClientVersion":"7.0.138",
		"PublicKey":null,
		"MachineKey":"<machinekey>",
		"UserID":<userid>,
		"SessionID":"<sessionid>",
		"Status":1
	}
}
  • Then send this keep alive every now and then to stay connected. (Send around every half a second)
{
	"TypeID":-476754606,
	"Body":{
		"Signal":true
	}
}
{
	"TypeID":-635182161,
	"Body":{
		"ClientID":"<clientID>",
		"ServerID":"<serverid>",
		"ConversationID":"<channelid>",
		"ContactID":"204922e8-7c2b-4b81-a4aa-8a1a3d4c4fb0",
		"ConversationType":1,
		"RootConversationID":"72a413b0-f8ed-4851-8c61-c6b13097bbb8",
		"Timestamp":<timestamp>,
		"SenderID":<senderid>,
		"SenderName":"<sendername>",
		"SenderPermissions":-1,
		"SenderRoles":[<roles>],
		"SenderVanityRole":<role>
	}
}
Clone this wiki locally