PRN221_-_FE_-_SU_2023_506.webp
K

PRN221_-_FE_-_SU_2023_506.webp

Answer (Choose 1 answer)
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.
await connection.invoke(user, message, "SendMessage");} catch (err) { console.error(err);
B. try {
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);}
C. None of the others.
D. All of the others.

7

Thông tin

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

Image metadata

Filename
PRN221_-_FE_-_SU_2023_506.webp
File size
78.3 KB
Dimensions
1926px x 906px

Share this media

Back
Bên trên Bottom