Limenius / ReactRenderer

Client and Server-side React rendering from PHP
MIT License
237 stars 37 forks source link

"end" event is never fired on nodejs socket. #11

Closed jfoucher closed 7 years ago

jfoucher commented 7 years ago

Please see #10

jfoucher commented 7 years ago

The solution I used is to append a null byte to the generated and then check for this null byte in the "data" event in the node server, and then and only then does it send the reply. Seems to work ok so far, but I'd like to have a more elegant solution.