I'd love to help - sorry for the long wait.
I had 2 issues that took some headache resolving (one is on-going).
Firstly I had troubles actually understanding the technology of websockets, specifically the router's role and how components fit into it all. The documentation on the Crossbar site is quite good - once you understand what principles behind it. If you don't, then it's just a massive wall of technical mumbo-jumbo that sort of makes sence, but then not really, and I was left with the need of some guidance as to where to get started. Hence the post I made.
To resolve this, you should make an animated video (hire a good communications and graphics consultant to get it done properly) that visually shows exactly how the technology works, what a "router" is and why it's so important and a few key concepts like components, authentication (which I'm still struggling with). You should also make a couple of common use cases complete with code examples for
at least the 5-10 most common languages used. I know you have som examples (
https://demo.crossbar.io/) but only one or two of these are (imho) interesting to the average user. I don't think very many people learn the websocket technology to learn how to build a multiplayer color picker :-)
I know you also have the github repo with all the examples but to use these I have to set up so much. I'm developing in WAMP-server and to use the examples I would have to set up a whole new virtual host and I feel like that's just not necessary... Maybe it's just me :-)
The second problem is that I somehow get the feeling that you have a hundred pages in your documentation but only twenty of them are accessible on the site (
http://crossbar.io/docs/). I don't know if I'm wrong but it seems that whenever there's something I can't figure out, I go google the problem and I end up on a page under your documentation that has most of the info I need but that I just didn't find when I browsed the site. I think you need to rethink the disposition of the documentation so that all the info can actually (and will actually) be found. Oh and a lot of the links in the documentation are dead. Most recently I've found this (
https://github.com/crossbario/crossbarexamples/tree/master/authenticate/wampcradynamic/php). I don't remember from where but it is definately not the first time.
Both these problems play into where I am right now. In short I'm making a rather large project in AngularJS with a PHP backend. My project will allow companies to register employees and a small part of the project is a chat application that allow employees to chat to one anthoer but only within the same company. This means that whenever an employee logs on or off, the other employees of that company should be notified. I have plenty of ideas how to do this. I think the best is simply to listen to wamp.subscription.on_subscripe/on_unsubsribe and then filter the information but I have no idea how to get my database's employee_id from this information. How to associate what I expect is the session_id with my employee_id.
I'm been Googling around and the best answer I can find is something about setting up WAMP-CRA which I guess can associate something called an Authid with my employee_id but to the best of my knowledge there are no examples of how to actually do it, save for a little bit in Python (which I don't know). After three days of Googling and reading a veritable library of articles (including the entirety of the crossbar documentation (I think)) I'm still only abouy 60 % sure this is the way to go and I have no Idea where to look now.
I hope my ranting gave a little insights into the troubles of the ws-newbie and maybe if you have the time, you could point me in the right direction regarding my problem specifically :-)
If I can do more to help please let me know (becuase crossbar looks to be quite an amazing technology... If I could understand it :-))
Kind regards,
Ulrik Vindberg