Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- routes.MapHub<SignalRHub>("/rt", options =>
- {
- // when run in debug mode only WebSockets are allowed
- if (Debugger.IsAttached) {
- options.Transports = Microsoft.AspNetCore.Http.Connections.HttpTransportType.WebSockets;
- }
- });
Add Comment
Please, Sign In to add comment