XSocket 4.1.0
XSocket 4.1.0 | 2.5 Mb
XSockets.NET is a real-time messaging system that allows communication between any device that has TCP/IP. The server can be hosted anywhere (.NET/Mono) and the clients cover every major browser + C#, VB.NET, Android, iOS, NETMF. And it is very easy to connect anything else that has a TCP/IP stack since XSockets allows custom protocols.
Getting started with real-time
1. Start a server
using XSockets.Core.Common.Socket;
using XSockets.Plugin.Framework;
using (var container = Composable.GetExport())
{
container.Start();
Console.ReadLine();
}
using XSockets.Plugin.Framework;
using (var container = Composable.GetExport())
{
container.Start();
Console.ReadLine();
}
2. Create a client and listen for "MyMessage"
jаvascript
var conn = new XSockets.WebSocket('ws://127.0.0.1',['generic']);
conn.controller('generic').mymessage = function(data){
alert(data.Text);
conn.controller('generic').mymessage = function(data){
alert(data.Text);
};
C#
var conn = new XSocketClient("ws://127.0.0.1:4502", "http://localhost","generic");
conn.Open();
conn.Controller("generic").On("mymessage", data => Console.WriteLine(data.Text));
conn.Open();
conn.Controller("generic").On("mymessage", data => Console.WriteLine(data.Text));
Home:
http://xsockets.net/
[/b]
[b] Only for V.I.P
Warning! You are not allowed to view this text.