aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_ws.erl
AgeCommit message (Collapse)Author
2018-06-04Update copyrightsLoïc Hoguin
2017-10-31Fix Websocket compression for OTP 20.1.3+Loïc Hoguin
This issue only concerns zlib contexts that are created in a different process from the one they are used in. Unfortunately compression will have to remain disabled if you are using OTP 20.1, 20.1.1 or 20.1.2 due to missing functionality. If you need compression you will need to use another version.
2017-02-16Update a comment about zlib deflate optionLoïc Hoguin
2016-10-03Add owner option to set owner of Websocket compression contextsLoïc Hoguin
Required by Cowboy 2 because it initializes the contexts in a different process than where they are used.
2016-06-08Fix #39: Prefer crypto:strong_rand_bytes/1Leo Liu
See also https://github.com/erlang/otp/pull/883
2015-08-26Merge branch 'master' of https://github.com/robashton/cowlibLoïc Hoguin
2015-08-26Fix a Dialyzer warning in cow_wsLoïc Hoguin
2015-04-09WS accepts iodata, so byte_size won't work unless we flattenRob Ashton
2015-03-12Add missing client functionality to Websocket codeLoïc Hoguin
2015-03-06Rewrite UTF-8 validation codeLoïc Hoguin
Use a version of the Flexible and Economical UTF-8 Decoder algorithm specifically optimized for Erlang. http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ The utf8_state() type is now exported and changed from a binary to an integer from 0..8.
2015-03-04Add permessage-deflate extension support to WebsocketLoïc Hoguin
https://tools.ietf.org/html/draft-ietf-hybi-permessage-compression-19 This also fixes some previously unknown issues with UTF-8 handling and simplifies the interface for parsing frames.
2015-02-16Add cow_qs for Websocket protocol parsing/buildingLoïc Hoguin
Code extracted from Cowboy and generalized. There are no tests in this file: the code is tested with Autobahntestsuite through the Cowboy test suite. There currently is no function to build a masked frame.