Commit graph

60 commits

Author SHA1 Message Date
Mark Humphreys
afddeb1e9b
Add license details 2017-11-01 08:59:07 +00:00
Mark Humphreys
12f37542ed
Added MPL 1.1 license 2017-11-01 08:57:22 +00:00
André Mussche
de7dc5815c Merge pull request #13 from syfre/master
Missing file
2016-11-11 12:35:20 +01:00
sage-syfre
5cab56c67e Missing file 2016-11-11 08:32:22 +01:00
André Mussche
ca778a3ef5 Merge pull request #12 from syfre/master
* Add defines for supporting SSL and HTTPBridge and removing SUPEROBJ…
2016-11-10 13:13:58 +01:00
Administrator
af28e64043 undo ivy71 pull, merge and resolve conflict with other pull later 2016-11-10 13:11:47 +01:00
André Mussche
f3268769c3 Merge pull request #4 from Yvi71/master
openssl support. tested. worked.
2016-11-10 12:55:31 +01:00
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
Yvi71
803bce2cf3 Fixed some issues with the compiler switch and other things i messed up last night.
Fixed some issues with the compiler switch and other things i messed up
last night
2015-11-13 11:09:24 +01:00
Yvi71
8c88e1704e Merge remote-tracking branch 'refs/remotes/origin/openssl' 2015-11-13 10:42:49 +01:00
yvi71
61cefd77e0 added support for openssl - and therewith dependency to openssl units.
Disable ssl support (and additional dependencies) set the compiler swith 
WS_NO_SSL
2015-11-13 01:59:22 +01:00
Administrator
8e7f63aeb6 ssl compatible (issue 1) 2015-10-01 08:39:43 +02:00
Administrator
c9eeb12691 simple demo 2015-10-01 08:33:16 +02:00
Administrator
c76ca9d286 only send part of the buffer (not the whole 32kb!) 2015-10-01 08:32:40 +02:00
André Mussche
58209374b4 Create README.md 2015-09-28 09:16:36 +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
491206d8fb Merge branch 'master' of https://github.com/andremussche/DelphiWebsockets 2014-05-08 09:31:51 +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
f6f958fb74 default readtimeout for connect 2014-03-28 12:47:25 +01:00
André Mussche
72711f0f27 default no debug_ws 2014-03-14 21:40:20 +01: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
57077ab1f3 conditional outputdebugstring 2014-03-14 09:37:30 +01:00
André Mussche
c40b5f0c11 socket.io connection fix 2014-03-12 22:04:30 +01:00
André Mussche
b2ffe540df better threadsafe connecting 2014-03-07 13:40:04 +01:00
André Mussche
d28d5b1457 Merge branch 'master' of https://github.com/andremussche/DelphiWebsockets
Conflicts:
	IdHTTPWebsocketClient.pas
2014-03-07 12:23:46 +01:00
André Mussche
57017c8082 clear data on connect 2014-03-07 12:22:18 +01:00
André Mussche
fe6460566c Merge branch 'master' of https://github.com/andremussche/DelphiWebsockets
Conflicts:
	IdHTTPWebsocketClient.pas
2014-03-07 12:21:09 +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
3903dac00e superobject: get current value/object (so objects are not created every time and overwritten -> mem leak) 2014-02-14 15:48:26 +01:00
André Mussche
78e7556876 geen host dan geen reconnect 2014-02-14 15:46:42 +01:00
André Mussche
c8733951de firefox support 2014-02-10 11:48:31 +01:00
André Mussche
41beb829a0 unit test for plain http + websockets added
improved (automatic) connection handling
2014-02-10 11:30:56 +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
4fc311b4c8 ping problem fixed 2014-02-04 21:23:49 +01:00
André Mussche
5a7310896b better client reconnect + small fixes 2014-01-31 20:22:10 +01:00
André Mussche
73ff121faa ping + reconnect in read thread 2014-01-23 16:30:39 +01:00
André Mussche
4842291225 manual send string instead of superobject (optimization) 2014-01-23 10:17:47 +01:00
André Mussche
8187b7f06a connection error fixes 2014-01-23 10:17:13 +01:00
André Mussche
0181d6b8ab Merge branch 'master' of https://github.com/andremussche/DelphiWebsockets 2014-01-20 08:59:36 +01:00
André Mussche
2b7abcceff xe5 compatible 2014-01-20 08:59:12 +01:00
André Mussche
e1d2ad094b EReadTimeout fixed 2014-01-17 15:30:09 +01:00
André Mussche
c712228bbc Merge branch 'master' of https://github.com/andremussche/DelphiWebsockets 2014-01-17 10:59:50 +01:00
André Mussche
c4adeb8e10 100ms auto connect timeout 2014-01-17 10:59:25 +01:00
André Mussche
e1f132d1bd compile fixes 2014-01-13 10:00:09 +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
24a9c83501 shorter server loop (in case of "hanging" data?)
direct context as connection
2014-01-03 18:55:05 +01:00