Questions tagged [websocket-sharp]

113 questions
0
votes
1 answer

Class that implements IDisposable without Dispose function?

I just pulled in WebSocketSharp via nuget. It's class WebSocket implements IDisposable but doesn't seem to have a Dispose method. How is that possible? I thought if you implement an interface you also have to implement all of it's…
Michael Pittino
  • 1,556
  • 4
  • 12
  • 18
0
votes
3 answers

C# Calling base method from interface method

I am starting to learn C# and can not figure out how to call base class method from within interface method. In this particular case, I need to somehow call sendData from within onRecievemethod. WebSocketBase.cs using WebSocketSharp; using…
Ilya Cherevkov
  • 1,743
  • 2
  • 17
  • 47
0
votes
1 answer

determine the IP Adress which is used to connect to a websocket server (websocket-sharp)

I have a linux machine, with multiple ip-adresses configured. I create a connection with the following code. ws = new WebSocket(Adress); ws.Origin = Origin; ws.OnOpen += OnOpen; ws.OnError += OnError; …
michidk
  • 351
  • 1
  • 4
  • 18
0
votes
0 answers

Compiler Error on Anonymous Callback Method for WebSocket-Sharp Event

Hi I am attempting to use websocket-sharp to open a socket to connect to my node.js backend, but I am running into a compiler error listed below. However, all the examples using websocket-sharp seem absolutely identical. I am at a loss at this…
0
votes
1 answer

Using websockets through the simple websockets for webgl asset in unity3d, can connect but can't transmit messages

Just having a problem on my mac trying to send strings over web sockets using this https://www.assetstore.unity3d.com/en/#!/content/38367 Lots of adapted code below from here mainly…
-1
votes
1 answer

How do I send a message from a different section of code from where the new instance of the WebSocket class was created in websocket-sharp C#

This is my first post on Stack Overflow, so please excuse me if my question isn't very clear. To add more context, I want to open a connection to a WebSocket when the connect button is clicked and for a message to be sent from the connection opened…
-1
votes
1 answer

Send Websocket param on connect but not query string

i am using Microsoft.Web.WebSockets as shown below, how can i assign on connect which user is connecting without setting his id in query string, i have in the server a property items, but in the client i can't find anything like that. this is my…
User7291
  • 1,095
  • 3
  • 29
  • 71
-1
votes
1 answer

Get Behavior instance from Sessions?

If I understand correctly, everytime there is a connection request, a Behavior instance is initialized. So I save some information to the extended Behavior class. However, now I want to Send a message to some connected client only (for example,…
Luke Vo
  • 17,859
  • 21
  • 105
  • 181
1 2 3 4 5 6 7
8