Handle responses other than ok by closing the connection.
Merge pull request #15 from aeden/master

Fix issue where response is not ok in handle_response
erlang:send_after must be protected with forcing cancel_timer to avoid loops
Use explicit websocket_client:send and check how it works from tests
wrap callback functions into error_logger messages
dont do selective receive because it breaks message order
print last message in error_logger:error_msg
Preserve message body after HTTP response parsing

Fixes #18.
Merge pull request #19 from Idorobots/master

Preserve message body after HTTP response parsing.
Merge #16 from erlyvideo.
Fixed bug with handling multiple ws messages packed into one tcp frame.
Version increased.
Fixed tail-recursion bug.
Version increased.
Update websocket_req.erl

fix the ws_ping_example
Merge pull request #23 from mihawk/patch-1

Update websocket_req.erl
Fixed type specs to satisfy dialyzer.
Merge pull request #22 from maximvl/master

Fixed bug with handling multiple ws messages packed into one tcp frame.
fix deprecation warning: replace crypto:sha(... with crypto:hash(sha...
Merge pull request #25 from enewhuis/master

fix deprecation warning: replace crypto:sha(... with crypto:hash(sha...