SocketFlow
An event-oriented protocol over tcp/WebSocket
Light and simple for use
Supported languages
client | server | |
---|---|---|
C# | client | server |
Js | client | - |
Java | - | - |
Protocol
- Have a simple overhead (8 bytes for every event)
- Ability to transfer 2 GB of event (2147483639 bytes)
- Ability to use your data structure (Named DataWrapper)
such as:- Json
- Xml
- Raw bytes
- Your own structure
- May be created 2 billion different events
Every event looks as:
length | type | event data | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bytes: | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | ... |
First 4 bytes (int) it is length of data, no more.
Second 4 bytes (int) it is type of event, determines which event occurred.
Then followed by data, which will be converted to value using the data wrapper.