Commit bd100e77 authored by Mårten Nordheim's avatar Mårten Nordheim
Browse files

QWebSocket: Add 'bytesToWrite'


Add the well-known 'bytesToWrite' function to QWebSocket. Previously
the only way to know how many bytes were left to be written was to
make a guesstimate on the overhead your message would get and then
keep track of the amount sent using the 'bytesWritten' signal.

The tests compare using '>' because there is overhead from the headers.

[ChangeLog][QWebSocket] Added the bytesToWrite function to
QWebSocket. Call this function to see how many bytes are left to write.

Change-Id: I82f17a98b582ee3bc02f0c47597b4a6717761f12
Reviewed-by: default avatarTimur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: default avatarEdward Welbourne <edward.welbourne@qt.io>
parent 4f034690
Showing with 31 additions and 0 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment