Question about send() and sendExtensionResponse()
Posted: 03 Apr 2019, 11:37
Hello everyone, I was just in the middle of coding and noticed that there are two different methods that can be used to send a response back to the client after you first send an extension request.
You can use simply send():
And then you can also use getApi().sendExtensionResponse():
Why are there two different methods that can do the same thing? Or am I wrong here and they have two different purposes? (Now thinking about it, I believe send() is for things like servlets maybe, but I'm not 100% sure.)
So when should each one of those methods be used?
Thanks for any help and advice!
-Carson Bennett
You can use simply send():
Code: Select all
send(responseCmd, response, responseUser);Code: Select all
getApi().sendExtensionResponse(responseCmd, response, responseUser, responseRoom, responseUDP);So when should each one of those methods be used?
Thanks for any help and advice!
-Carson Bennett