xsockets.net

XSockets.Net Server onOpen event implementation

拜拜、爱过 提交于 2020-01-26 03:40:34
问题 I tweak XSockets.Net Server now. I read http://xsockets.net/docs/c-server-api#using_events Using events The server side API offer a few events to help you out. OnOpen Invoked when the client is connected and the handshake is completed. //Hook up the event in the constructor. public MyController() { this.OnOpen += MyController_OnOpen; } void MyController_OnOpen(object sender, OnClientConnectArgs e) { //The connection is open... } so, if I do the below in VisualStduio.net class MyController :

XSocket.net without PlugIn-Framework

匆匆过客 提交于 2020-01-17 03:04:07
问题 I cannot find in the documentation a way to start a XSocket server without using the PlugIn Framework. I have a very easy library which contains its own controllers (located in the library itself) and which references XSockets. I don't really need the PlugIn Framework and it is disturbing me because my library is located in a binaries folder with a number of other components that I don't manage. The PlugIn Framework is not working properly in such a complex environment and I'm quite sure it

XSocket.net without PlugIn-Framework

隐身守侯 提交于 2020-01-17 03:03:25
问题 I cannot find in the documentation a way to start a XSocket server without using the PlugIn Framework. I have a very easy library which contains its own controllers (located in the library itself) and which references XSockets. I don't really need the PlugIn Framework and it is disturbing me because my library is located in a binaries folder with a number of other components that I don't manage. The PlugIn Framework is not working properly in such a complex environment and I'm quite sure it

XSockets.Net - how to manage NHibernate Session Context

别等时光非礼了梦想. 提交于 2019-12-25 03:24:33
问题 I wonder what is the best way to manage NHibernate Session Context when using NH data layer from Xsockets controller. Particularly I refer to self hosted winservice/console application or Azure worker role, where HTTPContext is not available. Of course there is always an option to create and dispose session per call, but that means a performance hit, so better reuse sessions in some way. My controller provides API for CRUD operations in underlying NH repository and is pushing updates to

XSocket's Plug-in Framework not working: I cannot get an instance of IXSocketServerContainer

你说的曾经没有我的故事 提交于 2019-12-13 20:48:03
问题 I have following code to start my server: private static IXSocketServerContainer server = null; public SocketServer() { server = XSockets.Plugin.Framework.Composable.GetExport<IXSocketServerContainer>(); } this worked fine for me under WinXP and Win7, with exactly the same set of dll and exe files, but now I deployed my system under WinServer 2008 and I get following error: clsSocketIntHandler|new , startin servers|0|0||0||TypeInitializationException: ; The type initializer for 'XSockets

Xsocket doesn't work , If router or ISP is preventing ICMP Traffic

亡梦爱人 提交于 2019-12-13 09:44:57
问题 I am using Xsocket for Duplex communication between server -client . Every thing was working fine . my sample can work on different network but i find out the Main issue in Xsocket.. if Client is behind Router , proxy and Fire Wall preventing ICMP traffic Then client Can Not Initiate Connection with Server. mean those client who can't ping Google . yahoo etc but can access them . those can't initiate connection with server. Should i've to enable ICMP protocol on client fire Wall ? I don't

Using SignalR as service layer for WebRTC

爱⌒轻易说出口 提交于 2019-12-07 02:56:54
问题 This is a follow-up to another question I asked, but with more precise information. I have two fundamentally identical web pages that demo WebRTC, one using XSockets as the backend signaling layer, and one using SignalR as the backend signaling layer. The two backends are fundamentally identical, differing only at the points where they (obviously) have different ways of sending data down to the client. Similarly, the TypeScript/JavaScript WebRTC code on the two clients is completely identical

Using SignalR as service layer for WebRTC

你。 提交于 2019-12-05 06:10:17
This is a follow-up to another question I asked, but with more precise information. I have two fundamentally identical web pages that demo WebRTC, one using XSockets as the backend signaling layer, and one using SignalR as the backend signaling layer. The two backends are fundamentally identical, differing only at the points where they (obviously) have different ways of sending data down to the client. Similarly, the TypeScript/JavaScript WebRTC code on the two clients is completely identical, as I've abstracted out the signaling layer. The problem is that the XSockets site works consistently,

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

风流意气都作罢 提交于 2019-12-02 13:24:57
问题 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 use it as a websocket server. I know ws is widely used for fundamental websocket layer for node, but we have socket.io or engine.io. I wonder if socket.io-client is a proper choice as a socket client, and want to double check what I miss. Do you