@PeeHaa For example, in the code above you could add Loop::repeat(1000, function () use ($websocketConnection) { $websocketConnection->send("PING!"); });
@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.