OD
(Choose 1 answer)
A. try{
await connection.invoke(user, message, "SendMessage");
} catch (err) {
}
console.error(err):
B. None of the others
C. try {
await connection.invoke("SendMessage", user, message):
} catch (err) {
console.error(err):
}
D. All of the others.
JavaScript clients of SignalR application call public methods on hubs via the invoke method HubConnection. The invoke method accepts the name of the hub method and any argument hub method.
Support that you already have defined the following code:
var connection = new signalR.HubConnectionBuilder()
withUrl("/chatHub")
.create();
connection.start();
Which the following codes you can call "invoke" method?
Exit 2