ServerEventsClient Event Heartbeat POST 405

Hi,
We have upgraded to 8.1 and are using MapEndpoints.
Server Events Feature is installed and enabled for authenticated users.
Frontend is an Angular SPA.
We are using the ServiceStack Client 2.1.12 and the event-stream GET works fine but the event-heartbeat is returning a 405.

Server Events Feature:

  builder
      .ConfigureServices( services =>
      {
          services.AddPlugin( new ServerEventsFeature
          {
              LimitToAuthenticatedUsers = true
          } );
      } );

Endpoint appears to be registered with GET and not POST.

Request is shown below:

Thanks,
John

This should be resolved from this commit, thanks for reporting.

This fix is available from v8.1.3+ that’s now available in pre-release packages.

All good now, thanks for the quick response

1 Like