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

Build string to send in socket to server #75

Open
Shooshpanius opened this issue Oct 3, 2018 · 0 comments
Open

Build string to send in socket to server #75

Shooshpanius opened this issue Oct 3, 2018 · 0 comments

Comments

@Shooshpanius
Copy link

I try to send message in websocket from other soft, wich must send only string.

I intercept string in demo chat and have this:

{
"$type": "WebSocketManager.Common.Message",
"messageType": 1,
"data": {
"$type": "WebSocketManager.Common.InvocationDescriptor",
"methodName": "SendMessage",
"arguments": {
"$type": "System.Object[]",
"$values": [
{
"$type": "System.String",
"$value": "test"
}
]
},
"identifier": {
"$type": "System.Guid",
"$value": "00000000-0000-0000-0000-000000000000"
}
}
}

When i send this string to websocket, i get error:

Newtonsoft.Json.JsonSerializationException: "Type specified in JSON 'WebSocketManager.Common.InvocationDescriptor, WebSocketManager.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not compatible with 'System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. Path 'data.$type', line 5, position 59."

Please, how the string to send to server must be?

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

No branches or pull requests

1 participant