PRN221_-_FA_2023_-_FE_1055.webp
Sakura_desu

PRN221_-_FA_2023_-_FE_1055.webp

(Choose 1 answer)
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 others.
D. All of the others.

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?
wi
Exit 38

Thông tin

Category
PRN221
Thêm bởi
Sakura_desu
Ngày thêm
Lượt xem
1,664
Lượt bình luận
12
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRN221_-_FA_2023_-_FE_1055.webp
File size
62 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom