Update Protocol.php

case-insensitive, may be "upgrade"
update strpos
Merge pull request #31 from feifengxlq/master

http header "connection" may be case-insensitive
Correct use of gmp_init()

As suggested by @Rupert-RR
Merge pull request #36 from varspool/bugfix-issue-34

Correct use of gmp_init()
Correction of receive spelt recieve in 3 comment instances.
Modified Protocol and Connection to make all non-web-sockets headers and
all query parameters used in the original UPGRADE HTTP request available
in the Connection object (for example to determine language preferences
from query parameters or cookies).
Updated documentation to reflect these changes.
Fix whitespace and line ending inconsistencies
Merge pull request #38 from varspool/feature-headers

Fixed whitespace on Add_access_to_headers_from_the_original_web_sockets_HTTP_request branch
Added test for getHeaders and getQueryParams
Fixes: PHP Fatal error:  Class 'Wrench\\Socket\\ConnectionException' not found in /var/www/vendor/wrench/wrench/lib/Wrench/Socket/ClientSocket.php on line 61
Merge pull request #40 from huanga/master

Fixes #39
Version bump
issue #43
Merge pull request #44 from mattexx/master

issue #43 - no-one seems to have anything to say against it!
More Ratchet love

jitt.li is very cleverly powered by Ratchet now. Let's not confuse people by continuing to list it as an example.
Added use of HandshakeException
Merge pull request #46 from KSDaemon/exceptions-fix

Added use of HandshakeException - Looks good to me - thanks.
add possibility to use get parameters in client's uri.
socket_last_error requires the socket extension to be enabled @see Wrench\Socket\Socket.php