Questions tagged [xsockets.net]

XSockets.NET is an open-source real-time framework for .NET 4.0+ and Mono.

96 questions
1
vote
2 answers

xsockets c# client publish

//connection return true var connection = await c.Open(); await c.Controller("mycontroller").Publish("chatmessage", new { Text = "Hello people!" }); I want publish message from my xamarin android client, to my server public void…
1
vote
1 answer

Create Unit test for Xsockets

I'm trying to better understand how to use unit tests. I want to test Send and Receive in Xsockets with Nunit. Right now when I run the test nothing is happening I just want to create the listener and then call invoke, then wait and update the…
NetG
  • 13
  • 2
1
vote
1 answer

xSockets and Windows Phone 8 App Invoke method

I'm using xSockets to create a simple chat app on windows phone 8, but Im having the following problem, on run it says "does not contain definition for invoke method", I read somewhere that I have to use Dispatch, but also no luck. My Code: private…
1
vote
0 answers

Can I Use Xsocket In Wcf Hosted Window Service Application?

I have application where WCF is hosting windows services . i want to know can i use Xsocket in that existing application ?? If can then how ? Please just give little help. Thanks advance
Adam
  • 173
  • 2
  • 14
1
vote
1 answer

Intergrate STUN server into XSockets.NET WebRTC

I'm quite new to this. How would I go about adding STUN functionality to my existing XSockets.NET WebRTC Javascript code? This JS creates my connections. I am running the signalling server separate on a linux machine running mono.
KriiV
  • 1,882
  • 4
  • 25
  • 43
1
vote
0 answers

XSockets doesn't send while using SendToAllExcept

I am using XSockets library in dotnet with a version > 3.0 Everything works fine for me except send to all except this.SendToAllExcept(p => p.ClientGuid == target.ClientGuid, new { target }, "eventName"); I have tried almost all functions, they are…
Mohamed Naguib
  • 1,720
  • 6
  • 23
  • 32
1
vote
0 answers

XSockets - send binary data with metadata from server to client (browser)

Using XSockets up to date version (3), I can see in the documentation how to send binary data with metadata from javascript to the server (http://xsockets.net/docs/c-server-api#pass-metadata-with-your-binary-data). The question is how to do it the…
1
vote
1 answer

Is socket.io-client adequate as a socket client for XSockets.NET server?

I develop a some socket bridge between C# server and node.js client. Firstly, I thought to use legacy TCP/IP socket, but on second thought websocket is way too easier in async style programming of node. XSockets.NET looks good and clean, and I will…
user1028880
1
vote
2 answers

Inferior behavior of XSockets under Mono compared to MS.NET

Given I am using XSockets 3.0.6 which I think is the latest stable version. Under MS.NET the behavior is as expected. On Ubuntu 14.04 and Mono 3.6.1 though the server has some kind of delays before sending messages to clients. Problem On MS.NET when…
Ceco
  • 1,586
  • 3
  • 16
  • 23
1
vote
1 answer

Compile a file in ASP.NET Web Site (Razor v3)

I've got a ASP.NET Web Site project in which I want to use XSockets but when I create a custom class for XSockets the class is not being picked up by XSockets because it never gets compiled to a dll. The class is in a file called MyChat.cs and once…
user3053234
  • 375
  • 1
  • 4
  • 16
1
vote
0 answers

XSockets custom controller not registered

Hello I'm tying to register this custom XSockets controller but I keep getting the error message "{"event":"0x1f4","data":"{\"CustomMessage\":\"The handler name was not found in loaded…
user3053234
  • 375
  • 1
  • 4
  • 16
1
vote
2 answers

Dependency Injection on Xsockets constructor

I'm trying to use XSockets to implement a server, and I want to abstract the DB layer using DI. This is what I have: public class FooController : XSocketController { // constructor public FooController() { // initialize some…
Noctis
  • 11,507
  • 3
  • 43
  • 82
1
vote
1 answer

XSockets Client Connecting But Not Receiving Messages

I'm trying to set up a specific scenario but, obviously, I'm having problems. My server is a site that primarily hosts a WCF service but I want to add an XSockets host there as well. I have the standard code in the bootstrap code file as per the…
Chuck
  • 33
  • 4
1
vote
1 answer

Sending large files with XSockets.Net

I am very much new to XSockets in .Net. Following is my Server Code. public class MyChatController : XSocketController { public void Foo(ITextArgs textArgs) { this.SendToAll(textArgs); } } Following is Client side Code …
Tinku Chacko
  • 520
  • 1
  • 6
  • 20
1
vote
2 answers

XSockets.net azure websites

I'm running my ASP.NET Web API app locally with xsockets without any problems. When I publish the project to Azure, it won't connect. I enabled websockets for Azure and adjusted the xsockets url on the client side from: conn = new…
user1997332
  • 113
  • 1
  • 4