Commit graph

17 commits

Author SHA1 Message Date
sage-syfre cdffdd25e1 * Add defines for supporting SSL and HTTPBridge and removing SUPEROBJECT dependency
Defines are defined in wsdefines.pas
Removing SUPEROBJECT allow to release under MPL license (which i expect)
Also fix
* bug : framing encoding when sending a frame in multiple parts (fin=false)
* bug : TIdIOHandlerWebsocket TIdIOHandlerWebsocket.ReadFrame _WaitByte ; may hang
Other changes
* Refactoring of TIdServerWebsocketHandling.ProcessServerCommandGet for inheritance
* Add event (TIdServerWSContext) to accept or refuse upgrade (allow to check session cookie)
* Change TWebsocketChannelRequest var aType:TWSDataType to allow receiving in a mode and answering in an other

To use OpenSSL you need a modification in IdSSLOpenSSL to let overwrite TIdSSLIOHandlerSocketOpenSSL class
2016-10-28 09:20:11 +02:00
André Mussche be9eb84f89 fixed locks and memleak 2014-08-01 12:19:25 +02:00
André Mussche f79c3cdb8a write timeout + error handling (try except for callbacks) 2014-07-03 11:39:18 +02:00
André Mussche a1b813b767 - safe callbacks, ISocketContext interface is used everywhere internally
- sync emit
- error + cleanup on disconnect
2014-07-03 11:26:41 +02:00
André Mussche b85079a7cb shutdown fixes, error event handling 2014-06-25 15:30:18 +02:00
André Mussche 77841a45a7 various fixes: threadsafety/better locking, data corruption, ConnectAsync, better socketio connection check, better auto reconnect, server side get current thread socket, optional manual client fetch etc 2014-05-08 09:31:14 +02:00
André Mussche 3e02642917 proces websocket data already fetched during upgrade (otherwise strange data corruption afterwards...) 2014-03-14 16:27:30 +01:00
André Mussche 13dbfbba4b reconnect in seperate thread, callback object reference counted (more async), etc 2014-03-07 12:19:32 +01:00
André Mussche 49087c6eaa - custom data property per context (for custom user storage per connection)
- string events (no superobject parsing but straight sending data)
- enumerate connections
2014-02-04 21:24:58 +01:00
André Mussche 5a7310896b better client reconnect + small fixes 2014-01-31 20:22:10 +01:00
André Mussche 8187b7f06a connection error fixes 2014-01-23 10:17:13 +01:00
André Mussche ea489db31c - sending all data at once (instead of seperate header + data -> receive order gets different!)
- including partial data send handling
- process data from internal frame buffer instead of only waiting on real data on the socket
- terminate deadlock due to tmonitor, using tcriticalsection instead
- singlewritethread option
2014-01-10 15:05:04 +01:00
André Mussche e6d3ad515a Merge branch 'master' of https://github.com/andremussche/DelphiWebsockets 2014-01-03 18:56:06 +01:00
André Mussche b4bb376703 interlocked messagenumber 2014-01-03 18:48:05 +01:00
André Mussche 7a59f2b272 local sync 2014-01-02 14:59:48 +01:00
andremussche be087753c5 error handling and unit test 2013-11-18 14:27:13 +01:00
andremussche 7d3b78b227 first checkin 2013-11-11 21:14:42 +01:00