Skip to content

v12 to v13 migration guide doesn't contain information about ISocketSessionInterceptor interface changesย #6734

@eddex

Description

@eddex

Is there an existing issue for this?

  • I have searched the existing issues

Product

Hot Chocolate

Describe the bug

In my project I use an implementation of the ISocketSessionInterceptor to do authentication of the websocket sessions.

After updating from HotChocolate 12 to 13, the ISocketSessionInterceptor interface has changed.

It would be great to have a section about the interface changes in the migration docs.

My main issue is that the OnConnectAsync method's message parameter (in v13 connectionInitMessage) has changed type from InitializeConnectionMessage to IOperationMessagePayload. I was using the message.Payload property which is not there anymore on the new interface-type. I'm not sure how to fix this.

Steps to reproduce

  1. Use HotChocolate v12
  2. Use the ISocketSessionInterceptor interface
  3. Update to HotChocolate v13
  4. Implementation is broken

Relevant log output

No response

Additional Context?

If I figure out how to fix this, I'll gladly add the information to the migration guide myself and create a PR.

Version

13.7.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions