PRN221_-_SU_2023_-_Block_5_-_FE_731.webp
Iida95

PRN221_-_SU_2023_-_Block_5_-_FE_731.webp

  • Media owner Iida95
  • Ngày thêm
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

Thông tin

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

Image metadata

Filename
PRN221_-_SU_2023_-_Block_5_-_FE_731.webp
File size
61.9 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom