question

Kim Johansen avatar image
Kim Johansen asked

SignalR receives close from server

I'm trying to implement SignalR for my game. After some time it receives a close message from the server. How do I avoid that? Or is there something I'm missing?

Code: https://github.com/ComputerKim/playfab-javascript-signalr-prototype

Ps.

https://learn.microsoft.com/en-us/gaming/playfab/sdks/javascript/ CDN links to old versions.

And could you make playfab compatible with https://cdnjs.cloudflare.com/ajax/libs/microsoft-signalr/7.0.5/signalr.js ? (It's not accepting some headers.)

apissdks
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Neils Shi avatar image Neils Shi commented ·

Thanks for your report, we have reported it as a bug. And you can get the latest JavaScript SDK through the JavaScript PlayFab SDK GitHub repo.

0 Likes 0 ·

1 Answer

·
Kim Johansen avatar image
Kim Johansen answered

Ignore my question about close, fixed it by setting transport to LongPolling.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.