Skip to content

Commit

Permalink
Merge branch 'hotfix/WebsocketOperationMessageCasing'
Browse files Browse the repository at this point in the history
  • Loading branch information
sahb1239 committed Sep 10, 2019
2 parents 7ac47b4 + 03d0a46 commit affc77a
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,27 +1,33 @@
namespace SAHB.GraphQLClient.Subscription.Internal
using System.Runtime.Serialization;

namespace SAHB.GraphQLClient.Subscription.Internal
{
/// <summary>
/// GraphQL operation messages
/// File from: https://github.com/graphql-dotnet/server/blob/develop/src/Transports.Subscriptions.Abstractions/OperationMessage.cs
/// Protocol defined in https://github.com/apollographql/subscriptions-transport-ws/blob/master/PROTOCOL.md
/// </summary>
[DataContract]
internal class OperationMessage
{
/// <summary>
/// Nullable Id
/// </summary>
[DataMember(Name = "id")]
public string Id { get; set; }

/// <summary>
/// Type <see cref="MessageType" />
/// </summary>
[DataMember(Name = "type")]
public string Type { get; set; }

/// <summary>
/// Nullable payload
/// </summary>
[DataMember(Name = "payload")]
public object Payload { get; set; }


/// <inheritdoc />
public override string ToString()
{
Expand Down

0 comments on commit affc77a

Please sign in to comment.