-
Notifications
You must be signed in to change notification settings - Fork 73
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
base: dev
Are you sure you want to change the base?
Conversation
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
open FSharp.Data.GraphQL.Shared.Websockets | |
open FSharp.Data.GraphQL.Shared.WebSockets |
|
||
open System.Collections.Generic | ||
|
||
type Output = IDictionary<string, obj> |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
namespace FSharp.Data.GraphQL.Shared.Websockets | |
namespace FSharp.Data.GraphQL.Shared.WebSockets |
There was a problem hiding this comment.
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
We intend to implement the client part now. It's useful to share contract-related code between client and server implementations.