PRJ301_-_FA_2024_-_Block_5_-_FE_3235.webp
Sero93

PRJ301_-_FA_2024_-_Block_5_-_FE_3235.webp

  • Media owner Sero93
  • Ngày thêm
Kizspy | Question: 8
(Choose 1 answer)
JavaScript clients of SignalR application call public methods on hubs via the invoke method of the HubConnection. The invoke method accepts the name of the hub method and any arguments defined in the 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?
A. try {
await connection.invoke("SendMessage", user, message);
} catch (err) {
console.error(err);
}
B. try {
await connection.invoke(user, message, "SendMessage");
} catch (err) {
console.error(err);
}
C. None of the mentioned
D. All of the the mentioned
FUOVER

Thông tin

Category
PRJ301
Thêm bởi
Sero93
Ngày thêm
Lượt xem
8,857
Lượt bình luận
33
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom