How can I open a new window without using JS

As of 1 of June 2022 there is no way of currently doing it directly with pure Blazor, you’ll need to use JSInterop. Luckily this is easy enough to do. At the top of your .razor file add @inject IJSRuntime JSRuntime; And then use it like so await JSRuntime.InvokeAsync<object>(“open”, url, “_blank”); Note that the IJSRuntime … Read more

Is there a Java equivalent of SignalR? [closed]

It seems that Atmosphere can be this what you are looking for. From github description: The Atmosphere Framework contains client and server side components for building Asynchronous Web Application. I didn’t tried it yet, but this says that it supports major JEE-Servers (JBoss, Tomcat, Glassfish, Jetty) and all major browsers and transports (WebSockets, SSE, Long-Polling … Read more

SignalR + Autofac + OWIN: Why doesn’t GlobalHost.ConnectionManager.GetHubContext work?

If you use a custom dependency resolver with SignalR, you can no longer use GlobalHost unless you modify it: GlobalHost.DependencyResolver = new AutofacDependencyResolver(container); IHubContext hubContext = GlobalHost.ConnectionManager.GetHubContext<MyHub>(); // A custom HubConfiguration is now unnecessary, since MapSignalR will // use the resolver from GlobalHost by default. app.MapSignalR(); If you don’t want to modify GlobalHost, you will … Read more

SignalR doesn’t use Session on server

SignalR connections (including the connection underlying all Hub operations for a client) do not support Session state. You could enable it if you wanted to but we’d strongly recommend against it as session state access serializes requests for a given client, meaning you won’t really get the benefit from SignalR duplex messaging anymore, as one … Read more

Java client to connect to SignalR?

I didnt find a SignalR-client for Android so I started to develop one by myself. You can checkit out at https://github.com/erizet/SignalA. Curently it’s more like a proof-of-concept than a finnished library. It’s now updated to protocol version 1.2 which is used in the 1.0 release of SignalR.

Don’t use StringBuilder or foreach in this hot code path

I made the code change and yes it made a huge difference in number of allocations (GetEnumerator()) calls vs not. Imagine this code is millions of times per second. The number of enumerators allocated is ridiculous and can be avoided. edit: We now invert control in order to avoid any allocations (writing to the writer … Read more

SignalR with Web Sockets

Even on Windows 8 / .NET 4.5 it was not working initially, but with these additional tips I finally got it working. Install websocket support -> Turn Windows features on or off -> Internet Information Services -> World Wide Web Services -> Application Development Features -> WebSocket Protocol in web.config, under appSettings, add this setting: … Read more

signalR – getting username

When using SignalR hubs you can use the HubCallerContext.User property to: Gets the user that was part of the initial http request. So try it with: public Task Join() { string username = Context.User.Identity.Name; //find group based on username string group = getGroup(username) return Groups.Add(Context.ConnectionId, group); }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)