Skip to content

HTML5 WebSockets integration supported with Ratchet #85

Answered by clue
uuouter asked this question in Q&A
Discussion options

You must be logged in to vote

@uuouter Thanks for bringing this up, excellent question!

WebSockets can be used by including https://github.com/ratchetphp/Ratchet, in particular by using https://github.com/voryx/WebSocketMiddleware. All packages share a common dependency tree and build on top of ReactPHP, so integration should be fairly straightforward.

As an alternative, you may also use Server-Sent Events (EventSource) which doesn't require any external dependencies, see also #68 for more details.

I'm still working on the documentation to cover this in more detail, but I hope this helps you to get started 👍

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by SimonFrings
Comment options

You must be logged in to vote
1 reply
@SimonFrings
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants