We changed the system design, so there is no more need to display it via AJAX. The Box is loaded through a search query instead. This also fixes the php sending problem, because the channel is created later, but this doesn’t affect the messages that were allready sent.
I also tried to call messageEndpoint(), but this results in an endless loop. (Called from the AJAX PHP function)
However, there are no more serious problems. I’m sorry I can’t provide the old code, but I would have to recreate the entire system ??
Thanks for your help and keep up the good work ??
(Althoug I didn’t fix the original problem, I’ll mark it as resolved)