erlang-websocket

Code pulled with git from git://github.com/davebryson/erlang_websocket.git with the last commit being 435e2dd

These are Current warnings for erlang-websocket.

dialyzer -n -q -Wno_improper_lists -r ebin deps examples
mochiweb_http.erl:105: The pattern {'error', {'http_error', "\r\n"}} can never match the type {'error',atom()} | {'ok','http_eoh' | binary() | maybe_improper_list(binary() | maybe_improper_list(any(),binary() | []) | byte(),binary() | []) | {'http_error',binary() | string()} | {'http_response',{non_neg_integer(),non_neg_integer()},integer(),binary() | string()} | {'http_header',integer(),atom() | binary() | string(),_,binary() | string()}}
mochiweb_http.erl:107: The pattern {'error', {'http_error', "\n"}} can never match the type {'error',atom()} | {'ok','http_eoh' | binary() | maybe_improper_list(binary() | maybe_improper_list(any(),binary() | []) | byte(),binary() | []) | {'http_error',binary() | string()} | {'http_response',{non_neg_integer(),non_neg_integer()},integer(),binary() | string()} | {'http_header',integer(),atom() | binary() | string(),_,binary() | string()}}
mochiweb_request.erl:224: The variable Length can never match since previous clauses completely covered the type 'chunked' | 'undefined' | integer() | {'unknown_transfer_encoding',_}
mochiweb_request.erl:233: Function start_response/2 has no local return
mochiweb_request.erl:242: Function start_raw_response/2 has no local return
mochiweb_request.erl:249: The call mochiweb:new_response({{_,port(),_,_,_,_},binary() | maybe_improper_list() | integer(),gb_tree()}) contains an opaque term as 1st argument when a structured term of type {_,_,[any()] | tuple()} is expected
mochiweb_request.erl:257: Function start_response_length/2 has no local return
mochiweb_request.erl:267: Function respond/2 has no local return
mochiweb_request.erl:311: Function not_found/1 has no local return
mochiweb_request.erl:317: Function not_found/2 has no local return
mochiweb_request.erl:324: Function ok/2 has no local return
mochiweb_request.erl:525: Function serve_file/3 has no local return
mochiweb_request.erl:530: Function serve_file/4 has no local return
mochiweb_request.erl:550: Function maybe_redirect/4 has no local return
mochiweb_request.erl:574: Function maybe_serve_file/3 has no local return
mochiweb_request.erl:620: Function iodevice_stream/2 will never be called
mochiweb_sup.erl:26: The pattern [Spec | _] can never match the type []
mochiweb_websocket.erl:66: The pattern {'error', {'http_error', "\r\n"}} can never match the type {'error',atom()} | {'ok','http_eoh' | binary() | maybe_improper_list(binary() | maybe_improper_list(any(),binary() | []) | byte(),binary() | []) | {'http_error',binary() | string()} | {'http_response',{non_neg_integer(),non_neg_integer()},integer(),binary() | string()} | {'http_header',integer(),atom() | binary() | string(),_,binary() | string()}}
mochiweb_websocket.erl:68: The pattern {'error', {'http_error', "\n"}} can never match the type {'error',atom()} | {'ok','http_eoh' | binary() | maybe_improper_list(binary() | maybe_improper_list(any(),binary() | []) | byte(),binary() | []) | {'http_error',binary() | string()} | {'http_response',{non_neg_integer(),non_neg_integer()},integer(),binary() | string()} | {'http_header',integer(),atom() | binary() | string(),_,binary() | string()}}
sample_client.erl:3: Callback info about the websocket_client behaviour is not available