Skip to content

Commit

Permalink
Merge pull request #268 from vwxyzh/z/stateful
Browse files Browse the repository at this point in the history
enable stateful reconnection in bidirection chat sample.
  • Loading branch information
JialinXin authored Apr 17, 2024
2 parents f41a8eb + d8915ba commit 74df6bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/BidirectionChat/csharp/content/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ <h3>Serverless chat</h3>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue@2.5.17/dist/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@aspnet/signalr@1.0.3/dist/browser/signalr.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/microsoft-signalr/8.0.0/signalr.js"></script>
<script src="https://cdn.jsdelivr.net/npm/axios@0.18.0/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/crypto-js@3.1.9-1/crypto-js.js"></script>
<script src="https://cdn.jsdelivr.net/npm/crypto-js@3.1.9-1/enc-base64.js"></script>
Expand Down Expand Up @@ -164,6 +164,7 @@ <h3>Serverless chat</h3>
return generateAccessToken(data.username)
}
})
.withStatefulReconnect()
.configureLogging(signalR.LogLevel.Information)
.build();
connection.on('newMessage', onNewMessage);
Expand Down

0 comments on commit 74df6bd

Please sign in to comment.