Since your program is a proxy, I think you might not be proxying the window resize messages correctly (or maybe not proxying them at all).
Resize messages are part of channel, but they are not passed to channel data callback, as they have a separate callback. I think you might need to implement the window resize callback on the server side, and pass the requests on the client side, but its hard to say without seeing the code.