Skip to content

Commit

Permalink
Applied suggestions of @xperiandrii
Browse files Browse the repository at this point in the history
  • Loading branch information
valbers committed Dec 3, 2024
1 parent 3ae142c commit b20fa5f
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module internal FSharp.Data.GraphQL.Server.AspNetCore.GraphQLSubscriptionsManagement

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

let addSubscription
(id : SubscriptionId, unsubscriber : SubscriptionUnsubscriber, onUnsubscribe : OnUnsubscribeAction)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ open FsToolkit.ErrorHandling

open FSharp.Data.GraphQL
open FSharp.Data.GraphQL.Execution
open FSharp.Data.GraphQL.Shared.Websockets
open FSharp.Data.GraphQL.Shared.WebSockets

type GraphQLWebSocketMiddleware<'Root>
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
<Compile Include="Helpers\MemoryCache.fs" />
<Compile Include="Errors.fs" />
<Compile Include="Exception.fs" />
<Compile Include="Websockets/Exceptions.fs" />
<Compile Include="ValidationTypes.fs" />
<Compile Include="AsyncVal.fs" />
<Compile Include="Ast.fs" />
Expand All @@ -62,7 +61,7 @@
<Compile Include="ValidationResultCache.fs" />
<Compile Include="Parser.fs" />
<Compile Include="GQLRequest.fs" />
<Compile Include="Websockets/Messages.fs" />
<Compile Include="WebSockets.fs" />
<Compile Include="Serialization/JsonConverters.fs" />
<Compile Include="Serialization/JSON.fs" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ open System.Text.Json.Serialization

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

[<Sealed>]
type ClientMessageConverter () =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
namespace FSharp.Data.GraphQL.Shared.Websockets
namespace FSharp.Data.GraphQL.Shared.WebSockets

open System
open System.Collections.Generic
open System.Text.Json
open FSharp.Data.GraphQL.Shared

type InvalidWebsocketMessageException (explanation : string) =
inherit System.Exception (explanation)

type SubscriptionId = string
type SubscriptionUnsubscriber = IDisposable
type OnUnsubscribeAction = SubscriptionId -> unit
Expand Down
4 changes: 0 additions & 4 deletions src/FSharp.Data.GraphQL.Shared/Websockets/Exceptions.fs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module FSharp.Data.GraphQL.Tests.AspNetCore.InvalidMessageTests

open System.Text.Json
open Xunit
open FSharp.Data.GraphQL.Shared.Websockets
open FSharp.Data.GraphQL.Shared.WebSockets

let toClientMessage (theInput : string) =
JsonSerializer.Deserialize<ClientMessage> (theInput, serializerOptions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ open Xunit
open System.Text.Json
open FSharp.Data.GraphQL.Ast
open FSharp.Data.GraphQL.Shared
open FSharp.Data.GraphQL.Shared.Websockets
open FSharp.Data.GraphQL.Shared.WebSockets
open System.Text.Json.Serialization

[<Fact>]
Expand Down

0 comments on commit b20fa5f

Please sign in to comment.