Chris Boden
0f827b13c9
Remove Topic autoDelete option from WAMP
...
When a Topic reaches 0 subscribers it will be removed
New subscriptions to Topics that had the same name will create new Topics
refs #185 , #198
2017-09-14 07:40:37 -04:00
Kolbasyatin
7c05c5cdae
Update Topic.php
...
We can send message not only string, but array also, so, IDE does unpleasant highlights.
2017-09-02 23:19:36 +03:00
krendel
e788fd4da1
fix souce link for client side library
2017-02-26 11:44:23 +02:00
Ben Connito
ddec2cb313
oops! fix using $prefix before it was defined.
2015-06-08 09:49:36 -04:00
Ben Connito
259d384bcf
if a CURIE prefix has not been defined, do not convert the URI from CURIE to URI. per @attozk comment
2015-06-08 09:29:21 -04:00
Bob van de Vijver
7798571db9
Remove unneeded catch
...
The second JsonException catch in not necessary, and can be removed.
2015-01-21 02:12:05 +01:00
Chris Boden
c179d60e77
Formatting, removed flash check
2014-11-23 11:40:06 -05:00
Ben Connito
f5d148cdc4
just strip the '.' from uniqid with added entropy. this way we dont run into any md5 collisions.
2014-09-15 17:01:24 -04:00
Ben Connito
705423e0b3
more entropy on session id
...
all tests passing
2014-08-07 13:35:01 -04:00
Ben Connito
29e22a0a2e
testPrefix passing
2014-08-07 12:34:00 -04:00
Ben Connito
72b1a44e38
add port property to App
...
allow origins in flash policy server
dont start a flash policy server if one is already running
better CURIE support
on CALL URI should be un prefixed
WampConnection callResult should allow an object to be encoded and sent
2014-08-07 11:56:13 -04:00
bobvandevijver
d16779e24f
Change private into protected
...
This is handy if you want to overwrite the class.
2014-07-09 22:24:53 +02:00
Chris Boden
f22f209466
[WAMP] Errors
...
Cleaned up error handling and tests. refs #190
2014-06-07 11:35:54 -04:00
Chris Boden
f8098db6cc
Merge branch 'refs/heads/wamp-errors'
2014-06-07 11:35:24 -04:00
Chris Boden
a0d858a638
[WAMP] Added autoDelete to Topics
2014-06-05 08:13:35 -04:00
Chris Boden
87de418446
Revert "Revert "Fixed a memory leak when a connection is closed the topics should also be removed if they are empty""
...
This reverts commit c86fdadcde
.
2014-06-04 20:59:10 -04:00
Chris Boden
c86fdadcde
Revert "Fixed a memory leak when a connection is closed the topics should also be removed if they are empty"
...
This reverts commit c089aea8eb
.
2014-06-03 22:30:40 -04:00
Christian Lück
fb1ba88fcc
Consistent Exception handling for WAMP protocol errors
2014-05-21 19:48:30 +02:00
Marc Easen
c089aea8eb
Fixed a memory leak when a connection is closed the topics should also be removed if they are empty
2014-04-16 18:52:02 +01:00
Grégoire Pineau
3a8578bd17
CS (eof_ending)
2014-03-21 16:46:43 +01:00
Chris Boden
dffb8d2c1f
[WAMP] CS, added unit tests for new features, 100% on WAMP
2014-02-16 19:09:54 -05:00
Konstantin Burkalev
48352fce63
Code fix for pull request 165
2014-02-11 11:16:25 +04:00
Konstantin Burkalev
0b5208507f
Added subscribers filtering in topic broadcasting for taking into account exclude & eligible data
2014-02-09 00:44:05 +04:00
Chris Boden
9a50835637
[WAMP] Message verification, fixes #105
...
Validate all messages follow WAMP protocol
2013-07-20 12:31:44 -04:00
Chris Boden
e7887a4b17
OCD API documentation updates
2013-01-05 16:10:21 -05:00
Pascal Borreli
ebcc66f1bf
Fixed typos
2012-10-11 18:33:29 +00:00
Chris Boden
491d0c779c
[WAMP] Removed default var from onPublish
...
Removed default array being set on WampServerInterface::onPublish
These methods are called by Ratchet's event components
Ratchet will never pass null values
This removes excess requirements from the end developer
2012-07-22 20:01:05 -04:00
Chris Boden
6ee81074d3
[WAMP][BCB] Property name change
...
Changed $conn->WAMP->topics to
$conn->WAMP->subscriptions
2012-07-22 17:55:53 -04:00
Chris Boden
226ec07b02
[WAMP] callError bugfix
...
callError accepts `$errorUri` as per the specification
It has previously, erroneously, been changed to $topic
Now loosely accepts a URI but can be any data structure that can be json'd
If it is given a topic, as they're to be URIs according to the spec
it will be transformed to a string
2012-07-22 15:17:34 -04:00
Chris Boden
002ae9419c
API documentation
2012-07-22 11:25:55 -04:00
Chris Boden
1505124954
[WAMP] Topic subscription bug fix
2012-07-20 10:23:45 -04:00
Chris Boden
dd8a59df69
[WAMP][Tests] Full namespace coverage
...
Added `has` method to Topic class
Covering all of WAMP code in unit tests
2012-07-19 11:27:31 -04:00
Chris Boden
bd5b7d09aa
[WAMP][Tests] Coverage
...
Sight bug fixes in WAMP topics
Unit tests coverage
2012-07-19 01:38:08 -04:00
Chris Boden
4078a360a8
[WAMP] Topic testing
...
Fixed bugs failing on Travis
More unit test coverage
2012-07-19 00:14:36 -04:00
Chris Boden
8d0cf5ffb2
[WAMP]
...
Lots of unit tests for new WAMP classes
Fixed parse error in TopicManager
Aliased Topic::getId -> __toString to WampConnection can work with Topics or raw protocol strings
API docs
CS
2012-07-18 23:55:59 -04:00
Chris Boden
b8a677a6bb
[WAMP] Topic tests and fix
...
Fixed a bug in Topic
Created unit tests for Topic
2012-07-17 23:59:35 -04:00
Chris Boden
c5cdd68cef
[WAMP] Topic manager
...
Separated functionality of Ratchet component and topic manager
2012-07-17 17:06:35 -04:00
Chris Boden
5a80a67f03
[WAMP][BCB] Init new serer component
...
Moved WampServer to ServerProtocol
New WampServer component
New Topic class
2012-07-17 16:57:05 -04:00
Chris Boden
986edd9562
[WAMP] [BCB] Publishing
...
BC break: Updated the `WampServerInterface` to have a strict API
Exclude and Eligible are now always arrays acting like black/white list
Changed `uri` to `topic` to be more generic with Pub/Sub
Added unit tests for `onPublish`
2012-05-19 13:30:58 -04:00
Chris Boden
f729be2ef3
[WebSocket] [WAMP] Sub-Protocols
...
Updated how Ratchet handles WebSocket sub-protocols
Broke out WsServerInterface to not extend MessageInterface;
Components will instead use Interface segregation principle
WAMP is now able to work without the developer having to
manually enable the WAMP sub-protocol
2012-05-12 22:42:56 -04:00
Chris Boden
5f80c291b7
CS and API docs
2012-05-11 00:51:11 -04:00
Chris Boden
710ec2535f
[WAMP][BCB] Subscribe protocol compliance
2012-05-10 23:14:59 -04:00
Chris Boden
4735218aa0
[BCB] Namespace changes
...
Removed the `Component` namespace
Removed the `Resource` namespace
Renamed components:
`IOServerComponent` => `IoServer`
`WebSocketComponent` => `WsServer`
`SessionComponent` => `SessionProvider`
`WAMPServerComponent` => `WampServer`
`IpBlackListComponent` => `IpBlackList`
`FlashPolicyComponent` => `FlashPolicy`
2012-05-08 23:14:28 -04:00