Skip to content

RFC event source JavaScript API  #32

Open
@basz

Description

@basz

Bas Kamer @basz Jan 19 23:36
Anyone worked with the event source JavaScript API Sounds like a really simple alternative to webstomp

Alexander Miertsch @codeliner Jan 20 11:07
@basz indeed! But I've only planed to use it. You need a backend that manages the event source clients. So far rabbit + webstomp was easier, but there is a SSE server available built on top of reactPHP. This combined with a projection would be a nice alternative compared to rabbit + webstomp

Bas Kamer @bweston92 z Jan 20 15:57
I would say its more efficiënt compared to our https://github.com/prooph/event-store-http-api package. But yes you would need something that makes sure a client only gets relevant events. Then you would be able to reconsitute the Same AR on the client. Http://bla.com/stream-of-AR-events/uuid ?
This works with a ‘php -S 0.0.0.0:8080’ https://github.com/html5rocks/www.html5rocks.com/tree/master/content/tutorials/eventsource/basics/static/demo
I like it

Bas Kamer @basz Jan 20 16:02
No extra Apache mods, didnt test with nigx but i think it should work. All browsers (edge with a polyfill)

You need a backend that manages the event source clients.

I'm interested to hear what would be needed to manage event sourced clients. http://bla.com/stream-of-AR-events/uuid would work if the client already knows the uuid of the aggregate. Also I'm wondering if this repo would be the place to add such a feature...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions