phpx/server: improve wire format

This commit updates the wire format of the phpx server. Instead of being
string-based, messages sent back and forth between go and php are now
base64-encoded DEFLATEd strings. This makes them a lot smaller and
faster to send.
This commit is contained in:
Tom 2023-05-01 15:50:21 +02:00
parent ffd9d2e695
commit a9572e6613
4 changed files with 80 additions and 38 deletions

View file

@ -6,6 +6,7 @@ import "fmt"
const (
errInit = "Server initialization failed"
errClosed = "Server closed"
errSend = "Failed to encode request"
errReceive = "Failed to decode response"
)