« first day (2463 days earlier)      last day (2710 days later) » 

22:11
@bwoebi What's missing for that? github.com/amphp/mysql/issues/34
@kelunik not sure right now, will have to check tomorrow
@Trowski What API proposal exactly? There's a lot of discussion in that issue
@PeeHaa it was pretty good
not as good as the original but really good
Will check it out
Anonymous
22:28
@Sean oi
Anonymous
I dinged you
Anonymous
Man I'm drunk.
@bwoebi As it was in the v1 release, where the user implements the Websocket interface with even handlers and passes it to the connect function.
@Trowski am I allowed one more stupid question or did I reach today's limit yet?
@JayIsTooCommon o/
What you been drinkin boy?
> Don't ask to ask, just ask.
22:32
@PeeHaa Well, you just used another one there, so good thing you had two left.
:-D
@PaulCrovella I know. But I feel kinda bad for today's questions because they are basically halp mei
\o/
ok
I have a method like:
like that's ever stopped anyone in here
@PaulCrovella Can I ask you a question about asking a question?
function run() {
    yield from $this->getMessages(); // this contains the foreach looping over the connection

    yield $other->stuff();
}
@Allenph no, sorry, you're fresh out of stupid questions
22:34
Why doesn't it get into the second line @Trowski?
Oh @PaulCrovella; I am the endless font of stupid questions.
@PaulCrovella I hate having to help vampire :(
God said, "Let there be stupid questions." And he created me as a container for them.
@PeeHaa You eventually close the connection in getMessages()?
But hey it got us jeeves :P
@Trowski No I don't
I think I don't want to close the connection either because the second line in run sends data over said connection
22:38
You need to handle the messages received within the loop.
Isn't that what I am doing:
Loop::run(function() use ($runner, $configuration) {
    $websocketHandshake  = new Handshake($configuration['frontendSocket']);
    $websocketConnection = yield connect($websocketHandshake);

    yield from $runner->run($websocketConnection);
});
foreach ($connection as $message) { $content = yield $message; yield $connection->send("response to message"); }
errrrrr
Anonymous
@PeeHaa chamo
But that means the sending can only happen on receiving messages?
22:40
No, you can call send at any time.
But when there are no message it will wait on $content = yield $message;
Yes, you'd have to have a separate coroutine (or maybe a timer) that you're not waiting on.
How can I get the latitude and longitude from the geolocation header using PHP?
@PeeHaa For example, in the code above you could add Loop::repeat(1000, function () use ($websocketConnection) { $websocketConnection->send("PING!"); });
Oooh I see I think
22:44
I'm wondering if the event'd API is just easier to understand.
At least it would be similar to Aerys.
why_not_both.jpg
Heh… no.
@PeeHaa Hopefully that was helpful. Have to head out for now, later. o/
I think it was. tnx
later o/
23:02
@Trowski I'm not sure about the event'd API. I think it somewhat depends on your concrete use case what's more appropriate. If you react to the server websocket output, it makes sort of sense. If you push input to the server from multiple sources, it is more favorable to be able to handle replies locally.
23:27
AGHHSDFHISDFI£JUDSFGDFG£
gesundheit
user924016
Hej
23:47
I DID IT
you got rid of the arrow? finally
you are such a dick paul
i take it that is not what you did...
I DIDN'T DO IT
fuck

« first day (2463 days earlier)      last day (2710 days later) »