File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ async function startSignalR() {
2727
2828 const connection = new signalR . HubConnectionBuilder ( )
2929 . withUrl ( connectionInfo . url , {
30- accessTokenFactory : ( ) => connectionInfo . accessToken
31- // skipNegotiation: true → is nu UITGESCHAKELD
32- // transport wordt automatisch gekozen
30+ accessTokenFactory : ( ) => connectionInfo . accessToken ,
31+ skipNegotiation : true ,
32+ transport : signalR . HttpTransportType . LongPolling
3333 } )
3434 . configureLogging ( signalR . LogLevel . Information )
3535 . build ( ) ;
@@ -56,7 +56,7 @@ document.getElementById("input-form").addEventListener("submit", async event =>
5656 appendMessage ( "user" , message ) ;
5757 inputField . value = "" ;
5858
59- // Hier kun je in de toekomst een POST doen naar je Function om het bericht op te slaan of te routeren
59+ // Hier kun je optioneel het bericht doorsturen naar je backend met fetch()
6060} ) ;
6161
6262startSignalR ( ) ;
You can’t perform that action at this time.
0 commit comments