Questions tagged [websocket-sharp]

113 questions
11
votes
1 answer

Using websocket compression with uWebSockets.js and Websocket-Sharp

We have a mobile game using websocket for connections. The server is a Node.js app using uWebSockets.js library and the client is a Unity app using Websocket-Sharp library. They both play well together and we didn't have encountered an issue with…
Arash
  • 3,013
  • 10
  • 52
  • 74
8
votes
2 answers

Timer to track websocket sharp messages in c#

I am using a websocket sharp dll in my windows application to get messages from a GDAX server. Everything is working fine so far - the messages are coming and i am processing them. The point where I am stuck is when the messages stops coming. At…
user1254053
  • 755
  • 3
  • 19
  • 55
8
votes
3 answers

Real time C# websockets client to use with Unity3D?

I'm building a Unity3D client in C# for a multiplayer game that I made. The server is written in Node.js, and I wrote a web client in Javascript that works well. But I am running into lag issues with my Unity3D client implementation. I am using the…
daniel metlitski
  • 747
  • 3
  • 11
  • 23
7
votes
2 answers

WebSockets-Sharp Exeption: WebSocketException

I made a xamarin iOS/Android Application. This App use websockets-sharp for the comunication with the server. Now after connecting i got the following error: 03-29 16:11:14.999 I/mono-stdout(19865): 29.03.2018…
DerStarkeBaer
  • 669
  • 8
  • 28
7
votes
3 answers

WebSocket secure connection self signed certificate

The goal is a web application that exchanges information with an C# application that is installed on the user's pc. The client application is the websocket server and the browser is the websocket client. In the end the websocket client in the user's…
Christian Klemm
  • 1,455
  • 5
  • 28
  • 49
6
votes
1 answer

Using websocket-sharp for .NET how can the server close a WebSocketBehavior?

I'm trying to use websocket-sharp for a project and the server needs to be able to drop websocket connections. The connections are represented by a WebSocketBehavior class which you inherit from. There's no Stop or Close or Disconnect method on…
gman
  • 100,619
  • 31
  • 269
  • 393
5
votes
1 answer

Signalr & WebSocketSharp in Unity3d

I've currently built a simple Signalr Hub which I'm pushing messages to from a Unity5 project. Given that SignalR2 client doesn't work with Unity5 I'm using websocketsharp in order to intercept the websocket frames. The messages are being pushed to…
Matthew Merryfull
  • 1,466
  • 18
  • 32
4
votes
1 answer

System.Net.Sockets.SocketException when create a websocket connection

iam new in websocket. I have created a console application in .net 4.5 framework and create a sample websocket client using library "WebSocketSharp". I have following code using System; using WebSocketSharp; namespace WebsocketTest { class…
Abdul Manaf
  • 4,933
  • 8
  • 51
  • 95
4
votes
1 answer

How do you create a client using websocket-sharp?

I'm using ClientWebSocket to subscribe to a REST service but want to be able to use websocket-sharp instead. static async void MonitorISY(string IPAddress, string userName, string password, IMessageWriter writer) { …
WhiskerBiscuit
  • 4,795
  • 8
  • 62
  • 100
4
votes
3 answers

WebSocketSharp A WebSocket service with the specified path isn't found

I'm trying to create a simple C# websocket server with websocket-sharp and I followed the official guide but I got some peculiar reply instead. C# Snippet using System; using WebSocketSharp.Server; namespace WebSocketSharp { class MainClass { …
J.Doe
  • 1,097
  • 1
  • 16
  • 34
4
votes
1 answer

C# Websocket-Sharp - how to identify clients

I use websocket-sharp ( https://github.com/sta/websocket-sharp ) (serveur side only). I can have many clients applications connected to my websocket server. Each client send an ID (let's call it CLIENT_ID). I want to know which websocket session is…
antoinestv
  • 3,286
  • 2
  • 23
  • 39
3
votes
0 answers

What happens with a Websocket connection while the debugger is in a breakpoint

I am using WebSocketSharp to receive a stream from a service in C#. So basically I have some code like this. WebSocket webSocket = new WebSocket("wss://ws-feed...."); webSocket.Connect(); webSocket.Send("message"); //Do something //Data still being…
Maxim Gershkovich
  • 45,951
  • 44
  • 147
  • 243
2
votes
0 answers

How to send and receive audio using Unity.WebRTC version 3.0.0-pre3 and UnityWebSocketSharp

I'm working on webRTC connection with SFU server to make multiple p2p audio connections between unity and js clients (js <-> js, unity <-> unity, unity <-> js). So far I've made stable connections between clients and I started working on audio…
PiotrB
  • 33
  • 1
  • 4
2
votes
0 answers

WebSocket-Sharp (C#) - How to check which client disconnected?

I have a simple chat app written with WebSocket-Sharp. Each of the clients has a unique ID (UID-<6 random numbers 0-9>-@) My question is if one of the clients disconnects, then how do I know which one of them disconnected? Like I have a List…
JRKGaming
  • 31
  • 1
2
votes
0 answers

webSocket.send() inside webSocket.onopen always fails

I'm starting with WebSockets and, to try things off, I built a minuscule WebSocket server in C# (using WebSocketSharp) and an html as a client to connect to it. On the client I have this code: const webSocket = new…
Kaisadilla
  • 41
  • 1
  • 5
1
2 3 4 5 6 7 8