Skip to content
프로젝트

소개

An extremely efficient C# WebSocket server.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Alchemy Websockets

Version 2.0.0

Protocol Support

Alchemy websockets supports:

  • (✓) hixie-76 (hybi00)
  • (✓) hybi-10
  • (✓) hybi-17 (official protocol)

An extremely efficient C# WebSocket server.

You can download the client javascript library at alchemy-websockets-client-library

Documentation: olivinelabs.com/Alchemy-Websockets/

Usage

Alchemy Websockets is a Visual Studio 2010 project. It can be loaded in the free Visual C# Express and Monodevelop as well (and potentially other compatible IDEs.)

After compilation, include the dll as a reference into your project. From there, starting a server is as simple as instantiating an WSServer object, opening the connection, and binding events.

An example application can be seen on alchemy-websockets-example

Example:

//...refs
using Alchemy;
using Alchemy.Classes;

static void Main(string[] args)
{
  var aServer = new WSServer(8100, IPAddress.Any)
  {
      DefaultOnReceive = OnReceive,
      DefaultOnSend = OnSend,
      DefaultOnConnect = OnConnect,
      DefaultOnConnected = OnConnected,
      DefaultOnDisconnect = OnDisconnect,
      TimeOut = new TimeSpan(0, 5, 0)
  };

  aServer.Start();
}

static void OnConnected(UserContext aContext)
{
  Console.WriteLine("Client Connection From : " + aContext.ClientAddress.ToString());
}

//...etc

Documentation

Check out our documentation at http://olivinelabs.com/Alchemy-Websockets

This covers Chrome current, beta, and alpha channels; Firefox latest, beta, and alpha channels; Safari, and includes support for a flash-based socket fallback for browsers with no socket support natively.

Browser Support List

License

Licensed under LGPL and MIT. Copyright 2011, Olivine Labs, LLC.

관련 프로젝트 살펴보기

불러오는 중…