Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 16 09:35
    acasademont commented #405
  • Apr 16 09:19
    acasademont commented #405
  • Apr 15 15:48
    acasademont commented #405
  • Apr 15 14:12
    leocharrua commented #255
  • Apr 15 13:18
    WyriHaximus commented #405
  • Apr 15 12:36
    acasademont commented #405
  • Apr 15 11:27
    clue labeled #237
  • Apr 15 09:49
    Nedum84 opened #444
  • Apr 15 07:05
    clue closed #255
  • Apr 15 07:05
    clue commented #255
  • Apr 15 06:56
    clue labeled #255
  • Apr 14 18:27
    leocharrua opened #255
  • Apr 12 21:23
    WyriHaximus review_requested #406
  • Apr 12 21:23
    WyriHaximus review_requested #406
  • Apr 12 21:23
    WyriHaximus labeled #406
  • Apr 12 21:23
    WyriHaximus milestoned #406
  • Apr 12 21:23
    WyriHaximus opened #406
  • Apr 11 18:10

    clue on v1.3.0

    (compare)

  • Apr 11 18:10

    clue on master

    Prepare v1.3.0 release (compare)

  • Apr 11 15:55
    WyriHaximus milestoned #403
Eduardo
@carliedu
Hi @clue. I based my code on example 11-chat.php in repository clue/php-sse-react. It work fine. But, now I need to writeMessage to specific client. If more than one client are connected, with different users, I would like to send messages to only a specific client. Is this possible: How?
Best
Christian Lück
@clue
@carliedu This project is intentionally designed to use a shared "channel" to send messages to multiple clients, but you can technically use multiple channel instances in this case :+1:
Here's also the gist of what's going on behind the scenes: https://gist.github.com/clue/6ba091ed298b1ecec528a3a6c201a2d1
(Note that this gist uses the legacy HTTP API)
Eduardo
@carliedu
Thanks for the tip. I will look it.
mithun-8connect
@mithun-8connect
Hi guys
I was trying to implement CoAP server using php
I tried server.php example on this https://github.com/cfullelove/PhpCoap
just want to know is it possible to read token information on server and how can I set that using client for testing
Christian Lück
@clue
@mithun-8connect Interesting project, wasn't aware of this before!
I don't recall anybody ever mentioning this project, so I'm not sure if anybody in here is able to help you with this. Have you tried opening an issue in this repository?
mithun-8connect
@mithun-8connect
@clue thanks for reply. I am able to open port and receive data but was checking how can I receive token if required.
anyway thanks I will check more
Christian Lück
@clue
@mithun-8connect Wireshark and/or a step debugger for this library would be my first try, but keep us posted if you find anything 👍
Christian Lück
@clue
@mmoreram Have used bunny before successfully, but not on AWS. What's your question again?
Marc Morera
@mmoreram
@clue thanks for your response. I deleted the question because I resolved the problem. When working with AWS, connections need to use amqps:// protocol. I'm not using any kind of ssl configuration, so with the regular configuration, it was not working. In order to make it work I had to define an empty array under the ssl key. It started to use secure connection and everything started to work.
Christian Lück
@clue

It's my birthday, so I felt like sharing 🎉🎉🎉

New @reactphp HTTP release improves benchmarking performance by a massive 100%! Seeing ~22000 requests per second on my laptop 📈🔥

Via https://twitter.com/another_clue/status/1381312509924237312

Jaussoin Timothée
@edhelas
i'll wait the next release to get 300% !
Cees-Jan Kiewiet
@WyriHaximus
@clue happy birthday!
Jaussoin Timothée
@edhelas
and happy birthday :3
Christian Lück
@clue
Thank you! 😊
@edhelas Yeah, I've already investigated this and see some potential for future improvements 😎
Jaussoin Timothée
@edhelas
I'm sorry to ask once more :3 but I'm really looking forward per-message-deflate support in Ratchet
Eduardo
@carliedu
@clue Gratuliere zum Geburtstag 🎂
Cees-Jan Kiewiet
@WyriHaximus
Not benchmarks, but unit tests differences showcasing how much faster react/http has become with this new release: https://twitter.com/WyriHaximus/status/1381355717123248134
Cees-Jan Kiewiet
@WyriHaximus

@clue thanks for your response. I deleted the question because I resolved the problem. When working with AWS, connections need to use amqps:// protocol. I'm not using any kind of ssl configuration, so with the regular configuration, it was not working. In order to make it work I had to define an empty array under the ssl key. It started to use secure connection and everything started to work.

@mmoreram Sounds like something that could be solved on bunnies side tbh. At least with some documentation mentioning that the SSL options are optional, but also adding URI support when setting up the client to make it easier to pick these kinds of differences up

Marc Morera
@mmoreram
@WyriHaximus great. I think the same. I will make a PR on the repository with a proposal :)
Cees-Jan Kiewiet
@WyriHaximus
@mmoreram :+1:
Eduardo
@carliedu
Catches ReactPHP MySQL sintax errors?
Marc Morera
@mmoreram
@WyriHaximus @clue is there any mysql connection pool implementation in progress?
I'd like to work on it, and I'd like to do it under the ppal mysql reactphp-based library
Cees-Jan Kiewiet
@WyriHaximus
@mmoreram Assuming you mean here? https://github.com/friends-of-reactphp/mysql
Marc Morera
@mmoreram
yes!
I mean, I'd like to go for it as the next project. And I would like to bring this work for the main package, if you all want and you feel that I can do a good work
unless, of course, you're already working on it
Cees-Jan Kiewiet
@WyriHaximus
@mmoreram Unless @clue has some work done on it already go for it.
Cees-Jan Kiewiet
@WyriHaximus
Also looking at https://github.com/friends-of-reactphp/mysql/blob/master/src/Io/LazyConnection.php the easist way would be to have a factory method for a pool, with a maximum number of connections. Keep track of which is busy, and sned queries to idle connections, probably also close some connections after a while of inactivity
Marc Morera
@mmoreram
@WyriHaximus would you go for a transactional-type of connection acquirement? or you would go for an automatic acquirement per each query?
I should check as well if someone makes a transaction + rollback/commit, if this transaction have to use the same connection in the whole process
Cees-Jan Kiewiet
@WyriHaximus
@mmoreram it probably makes more sense to add transaction support first, and then add pooling
Marc Morera
@mmoreram
Should transactions feature be placed in the library? In fact, the library already supports transactions. Wouldn't you place this in the layer on top the client? i.e. DBAL
Cees-Jan Kiewiet
@WyriHaximus
Well they are bound to a connection right? So you'd want to start a transaction from the low level client and get a dedicated connection for it. a DBAL can build on top of that
Marc Morera
@mmoreram
I understand
Aaron Piotrowski
@trowski

I should check as well if someone makes a transaction + rollback/commit, if this transaction have to use the same connection in the whole process

A transaction needs to use a single connection.

Marc Morera
@mmoreram
So first of all, a small implementation for locking the connection with a queue on top of that, and then we can reuse this code for managing several connections. That last pooling layer should then implement the balancing / routing + scalability
(This is not my what-to-do list, just walking around some ideas)
Christian Lück
@clue