// SubscribeRoutine presence notifications to a pubnub channel and waits for the response.
// Used as a go routine.
func SubscribeToPresence(channel string, pubnubInstance *pubnubMessaging.Pubnub, t *testing.T, testName string, customUuid string, returnPresenceChannel chan []byte) {
	go pubnubInstance.Subscribe(channel, returnPresenceChannel, true)
	ParsePresenceResponse(pubnubInstance, t, returnPresenceChannel, channel, testName, customUuid, false)
}
// SubscribeRoutine subscribes to a pubnub channel and waits for the response.
// Used as a go routine.
func SubscribeRoutine(channel string, pubnubInstance *pubnubMessaging.Pubnub) {
	var subscribeChannel = make(chan []byte)
	go pubnubInstance.Subscribe(channel, subscribeChannel, false)
	ParseSubscribeResponseForPresence(subscribeChannel, channel)
}