Skip to content
  • GitHub
  • LinkedIn
  • Twitter
  • Instagram
  • SlideShare

#SharePointProblems

Solutions are worthless unless shared! Antti K. Koskela's Personal Professional Blog

  • Home
  • Posts
    • Configuration
    • DevTips
    • Tech Tips
    • Programming
    • Development environment
    • Troubleshooting
  • About (etc.)
    • Antti K. Koskela
    • Get in touch!
  • Archives
    • Browse my posts
  • Search

Democracy is under attack. Ukraine is the victim under fire right now, but imperialism won't stop there. I urge you to help - click this for details!

Home » Websockets

Tag: Websockets

WebSockets.

Using role claims to target WebSockets

This article explains a (fairly) simple solution on how you can grab role claims – or any other claims with some tweaking – and use them as the basis for targeting your WebSocket messages. Very nifty, if you ask me, without all the enterprisiness of SignalR. Talking about SignalR, another…Continue reading Using role claims to target WebSockets

SignalRRRRRR meme. Fantastic use of my web hosting storage.

How to test SignalR-connection in the browser?

So a while back I posted about testing your “vanilla” WebSockets connection directly in the browser – and while that’s nice and easy, sometimes you need to class up a bit. In my case that meant upgrading to SignalR (for some corporate and enterprisey reasons as usual). It makes sense…Continue reading How to test SignalR-connection in the browser?

Use SignalR. It'll be fun.

How to access claims of a SignalR user in ASP.NET Core?

I tend to post a lot of articles about different gotchas and configuration tweaks, but this one goes back to the roots a bit – just me and a couple of other devs hacking some code together and being blocked by a bit of an obstacle, that’s then fixed by…Continue reading How to access claims of a SignalR user in ASP.NET Core?

401 Unauthorized meme

How to secure your WebSocket connection using .NET Core?

This article explains how to easily authenticate your WebSocket connections using .NET Core and vanilla JavaScript. The same concept probably applies to all sorts of front-end libraries, although some of them might offer some syntactic sugar on top of it. But it’s simple, and keeping your implementation simple is generally…Continue reading How to secure your WebSocket connection using .NET Core?

WebSockets.

HttpContext.WebSockets.IsWebSocketRequest always null in .NET Core?

This article explains another simple fix to an annoying issue. I guess that’s how I start most of my little tutorials, but hey, it’s true! I suppose I just have a knack for running into issues that come with poorly documented fixes or workarounds that are obvious but only in…Continue reading HttpContext.WebSockets.IsWebSocketRequest always null in .NET Core?

WebSockets.

How to test a WebSocket connection in browser?

This article documents a neat and simple way to establish and test a WebSocket connection, using just vanilla JavaScript and your favorite browser’s developer tools. Quick and easy – no external tools or libraries required! This is neat because you don’t want to have your information (credentials, hostnames, or even…Continue reading How to test a WebSocket connection in browser?

Author's photo: Antti K. Koskela

About the site and the author

Welcome! You just stumbled upon the home page of an all-around artisan code crafter and Microsoft MVP, Antti "koskila" Koskela.

Don't hesitate to leave comments. I read them all and try to reply as well!

More information about me in the About -section!

Recent articles

  • Even Geralt can get sad using a mac

    Am I the problem? Even onboarding to the Apple ecosystem failed miserably.

     July 8, 2025
  • Run Kubernetes in production - it'll be easy, they said

    Any kubectl command throws “Unhandled Error” err=”couldn’t get current server API group list: Get \”http://localhost:8080/api?timeout=32s\”: dial tcp [::1]:8080: connect: connection refused” – what do?

     July 1, 2025
  • OneNote logo

    “Sync error. We are having trouble syncing. Click ‘Sign in again’ to fix the issue.” in OneNote? Let’s fix it!

     June 24, 2025
  • smug-geralt-of-apple

    How to set Outlook as Your default email client on a mac (because that’s definitely a totally sensible thing to do)

     June 17, 2025
  • msbuild - failed

    GitHub Actions build for Blazor Static (or rather StaticBlazor) never ending? Super-easy fix!

     June 10, 2025

Like these posts and tips? You can get them automatically right as I post them! Enter your email here or check out the RSS feed here: https://www.koskila.net/feed/
Loading

Microsoft MVP Program logo in dark grey and white
To the top of the page!
Koskila.net has been going strong since 2009 - way before I knew anything about .NET! :)

Want to see old versions of the site? Check them out on Archive.org!