Questions tagged [websocket-sharp]
113 questions
0
votes
0 answers
WebSocketSharp unity remote
I am making a simple chat system with unity using WebSocketSharp.
ws = new WebSocket("ws://localhost:8088/Laputa");
works. I mean, with localhost, running two of this program can do what is expected to do.
but remote address (xxx.xxx.xxx.xxx),…

user3626003
- 1
- 1
0
votes
0 answers
WebSocket connection lost
I'm developing a windows desktop application WebSocket client, I use WebSocket-Sharp nuget to connect to the server.
My problem is when the connection is Idle for some time, my client will not send any pong responses to server ping requests, by…

Ebraheem
- 603
- 6
- 24
0
votes
0 answers
WebSocketSharp returning "Input string was not in a correct format"
I have a c# client that I am trying to connect to a websocket server. Using the Chrome extension "Simple Web Socket Client", I can connect, and send commands ok to the websocket server so I know the server is working ok and it is a commerical…

rukiman
- 597
- 10
- 32
0
votes
1 answer
websocket-sharp Getting data result from client
protected override void OnMessage (MessageEventArgs e)
{
Send("Testing");
//Console.writeline("result data getting from client");
}
Hi,
I'm trying to do get a data while sending message. On above i added a row which is getting data from m client.…

Murat avcı
- 1
- 2
0
votes
2 answers
WebSocketsSharp custom events deserialize
I have to build a functionality where I can send custom event with websockets-sharp.
I made a function MakePacket that creates me a string like this ["draw:drawer:accept","{\"imei\":\"123\"}"] that I can send.
public string MakePacket(string…

DerStarkeBaer
- 669
- 8
- 28
0
votes
0 answers
An error has occured while connecting websockets in unity3d
This is my client(unity3d C# code) where i am connecting with a python websocket server
private WebSocket ws;
public bool isAlive;
void Start()
{
ws = new WebSocket("ws://127.0.0.1:3000");//127.0.0.1
ws.OnClose +=…

Muhammad Faizan Khan
- 10,013
- 18
- 97
- 186
0
votes
1 answer
Request/Response paradigm for Websocketsharp library with using Websocket.SendAsync() and OnMessage callback function
I am trying to implement request/response paradigm for Websocketsharp library exactly same it works for HttpClient's request/response async behavior. I am trying to achieve it using the async callback as given in below code. I tried to get SendAsync…

Jits
- 712
- 7
- 11
0
votes
0 answers
How to set Websocket-sharp connection between WPF app and ASP.Net app?
I have a desktop application (WPF) and a web application (ASP.Net) and want to set connection using WebSocket-Sharp.
On client side:
using (var ws = new WebSocket("ws://localhost:8085"))
{
var data = new byte[] { 1, 2,…

Dmitry Semin
- 55
- 8
0
votes
1 answer
Basic WebSocketSharp client connection in C#
How do I get this to work:
using (var ws = new WebSocket("wss://echo.websocket.org"))
{
ws.OnMessage += (sender, e) =>
Console.WriteLine("RESPONSE: " + e.Data);
ws.Connect();
ws.Send("TEST SEND");
Console.ReadKey(true);
}
The…

Sean
- 14,359
- 13
- 74
- 124
0
votes
2 answers
Websocket sharp log file output
I'm using Websocket sharp (https://github.com/sta/websocket-sharp) for a console program, how do I output all debug/trace information that are displayed on the console to a text file?
For example:
using (var ws = new WebSocket(WebAddr))
…

Rocky Wei
- 15
- 1
- 8
0
votes
1 answer
WebsocketSharp events not firing
Event not firing in following code:
private WebSocketSharp.WebSocket client;
private void GetWebsocketFeedMessages()
{
string host = "wss://ws-feed.gdax.com";
client = new WebSocket(host);
client.Connect();
…

user1254053
- 755
- 3
- 19
- 55
0
votes
1 answer
websocket-sharp server sending duplicate messages
Here is the rumpus.
I am building a networked app using websocket-sharp and I have run into an issue where the server sends hundreds (not consistently the same amount) of duplicate messages to the client, heres the breakdown.
1.) The client connects…

Sean Barnard
- 59
- 1
- 1
- 9
0
votes
1 answer
Error PM|Fatal|WebSocket.doHandshake|Indicates the redirection #326
I keep running into this error. Here is the code that I wrote for a client connecting to a websocket server(written in java but that shouldnt matter I believe)
I am using websocketsharp library for this.
enter code here
var unq =…

Monitor Hash
- 1
- 3
0
votes
1 answer
Using web sockets and events in MS Bot Framework
I am trying to communicate with echo service on a server using web sockets in my bot. I am using WebSocketSharp assembly to create web socket connection. I want to echo back whatever user types in the bot but, it never fires "ws.OnMessage" event and…

Ehsan Ul Haq
- 209
- 3
- 12
0
votes
0 answers
C# Accessing an object's property values
I'm trying to access an object's property values on C#. I send my object from Node.js to C# via websockets.
I'm using this package : https://github.com/sta/websocket-sharp
Here's what I send via Node.js
var car = {
type: "Fiat",
model: "500",
…

salep
- 1,332
- 9
- 44
- 93