Limiting Concurrent Subscriptions With Rx

This post was prompted by a question on the RxHttp project. I thought that there may be others looking for a similar solution. Sometimes when using Rx you may wish to limit the number of concurrent subscriptions. Take the following example (RxPHP and RxHttp): Observable::fromArray( [ ‘http://www.example.com/’, // … lots more urls here ‘http://www.example.com/’, ] … Continued

Authorization/Permissions with Thruway

You can use the AuthorizationManager that comes with Thruway to limit access to users of your Thruway Web Application Messaging Protocol (WAMP) router based on their roles. In order to use authorization, you must setup a router that is able to authenticate. You can check out how to setup a JWT authenticating router here. I … Continued

Integrating Symfony Authentication for ThruwayBundle

The last post I wrote gave instructions on how to push updates realtime with Symfony using the ThruwayBundle. If you implemented those instructions, you probably thought to yourself that there really isn’t a whole lot of security. If someone could guess your event names, they would be able connect and subscribe to them because the … Continued

Pushing Updates with the ThruwayBundle for Symfony

In this post I walk through creating a basic Symfony project that uses the ThruwayBundle to publish update and new events to a Thruway WAMP (Web Application Messaging Protocol) router. This can be used to create a realtime system that monitors your traditional Symfony application. This post touches just the surface of the ThruwayBundle. Hopefully … Continued

Using JSON Web Token (JWT) for Thruway Authentication

JSON Web Tokens (JWT) are a great way to easily add authentication to your Thruway router. It allows you to generate authentication credentials from any supported environment. It is great for integrating your new Thruway router into your existing traditional web application. In this example, I am going to create a module that lives inside … Continued

Authentication in Thruway WAMP Router

This is an article about how the Thruway WAMP (Web Application Messaging Protocol) Router works. This is not necessarily intended to be a how-to article, but a detailed discussion of what the authentication process is and what sequence happens during authentication in the Thruway router. In order to have a basis for the discussion, it … Continued

Creating a Custom PHP WAMP Client for Thruway

There are a few different options you have when creating a WAMP (Web Application Messaging Protocol) client with Thruway. Option 1 is to use the Connection object provided with Thruway. This object was meant to ease the transition for those people familiar with simple use of the AutobahnJS Connection object. There is an example of … Continued

Using AngularJS Filter Inside the Controller

The filter functionality of AngularJS is often used inside the view when you need to filter a set of items in a collection. I had overlooked the usefulness this might have as a tool inside the controller as well. It can be very useful in “querying” information. When I say “using filter” I am referring … Continued