Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refact: moving websockets code to .Shared to prepare for client impl. #504

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

valbers
Copy link
Collaborator

@valbers valbers commented Nov 21, 2024

We intend to implement the client part now. It's useful to share contract-related code between client and server implementations.

  We intend to implement the client part now. It's useful to share
contract-related code between client and server implementations.
@@ -1,6 +1,6 @@
module internal FSharp.Data.GraphQL.Server.AspNetCore.GraphQLSubscriptionsManagement

open FSharp.Data.GraphQL.Server.AspNetCore.WebSockets
open FSharp.Data.GraphQL.Shared.Websockets
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
open FSharp.Data.GraphQL.Shared.Websockets
open FSharp.Data.GraphQL.Shared.WebSockets


open System.Collections.Generic

type Output = IDictionary<string, obj>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would put NameValueLookup into this file

@@ -0,0 +1,4 @@
namespace FSharp.Data.GraphQL.Shared.Websockets
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
namespace FSharp.Data.GraphQL.Shared.Websockets
namespace FSharp.Data.GraphQL.Shared.WebSockets

@@ -1,10 +1,9 @@
namespace FSharp.Data.GraphQL.Server.AspNetCore.WebSockets
namespace FSharp.Data.GraphQL.Shared.Websockets
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
namespace FSharp.Data.GraphQL.Shared.Websockets
namespace FSharp.Data.GraphQL.Shared.WebSockets

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would put InvalidWebsocketMessageException into this file and name it WebSockets.fs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants