Skip to content

Commit

Permalink
Skip negotiation
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Sep 23, 2024
1 parent dd53cc9 commit 87b0df3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 49 deletions.
48 changes: 0 additions & 48 deletions docker-compose.yml

This file was deleted.

5 changes: 4 additions & 1 deletion src/js/UserHub.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ export default class ws {
constructor() {

this.connection = new signalR.HubConnectionBuilder()
.withUrl(config.apiUrl + "1/hubs/user")
.withUrl(config.apiUrl + "1/hubs/user", options => {
options.transport = signalR.HttpTransportType.WebSockets;
options.skipNegotiation = true;
})
.configureLogging(signalR.LogLevel.Information)
.withAutomaticReconnect([0, 1000, 2000, 5000, 10000, 10000, 15000, 30000, 60000])
.build();
Expand Down

0 comments on commit 87b0df3

Please sign in to comment.