https://github.com/tearth/falcon
WebSocket server library for .NET
https://github.com/tearth/falcon
csharp dotnet library websocket websocket-server
Last synced: about 1 month ago
JSON representation
WebSocket server library for .NET
- Host: GitHub
- URL: https://github.com/tearth/falcon
- Owner: Tearth
- License: gpl-3.0
- Created: 2017-07-03T16:55:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-07-27T23:26:03.000Z (almost 7 years ago)
- Last Synced: 2025-06-04T23:09:37.970Z (about 1 year ago)
- Topics: csharp, dotnet, library, websocket, websocket-server
- Language: C#
- Size: 179 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Falcon: WebSocket server library for .NET
Falcon is a simple implementation of WebSocket protocol, based on [RFC6455](https://tools.ietf.org/html/rfc6455). The main class of this library is WebSocketServer, which includes:
#### Events
* **WebSocketConnected** - triggered when a new client has connected
* **WebSocketDataReceived** - triggered when new data has received
* **WebSocketDataSent** - triggered when a data has been successfully sent
* **WebSocketDisconnected** - triggered when the client has disconnected
#### Methods
* **Start** - starts WebSocket server with the specified port
* **Stop** - closes WebSocket server
* **SendData** - sends specified data to the client
* **SendRawData** - sends raw (without WebSocket frame) data to the client
* **DisconnectClient** - removes connection with the client
* **GetClientInfo** - returns information (IP, port, ...) about the client
# Statistics
* **Source lines of code**: ~1800
* **Comments**: ~750
# Used libraries
* Xunit
# Examples
