PRJ301_-_SP_2025_-_RE_3714.webp
Inumaki87

PRJ301_-_SP_2025_-_RE_3714.webp

Kizspy Question: 8
(Choose 1 answer)
FASTER, LOW LOW
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

Thông tin

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

Share this media

Back
Bên trên Bottom