close
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

websocket-client wolfSSL port

This folder contains patches to add support for wolfSSL to websocket-client project. Subfolder x.yy.zz contains patches for websocket-client version x.yy.zz.

Installation instructions

  1. Clone websocket-client repository and checkout to the right version (eg. v0.59.0)
git clone https://github.com/websocket-client/websocket-client.git
git checkout v0.59.0
  1. Apply patches from this repository
git am path/to/osp/websocket-client-patches/v0.59.0/*.patch
  1. Install wolfssl-py

Follow instructions in wolfssl-py repository.

  1. Install websocket-client from the folder where you applied patches
python -m pip install -e .
  1. (Optional) if you want to run the test suite install the following packages
python -m pip install pysock pytest
  1. (Optional) run the test suite. Some test requires that wolfSSL native library is compiled with the --enable-ticket-nonce-malloc option. Also, you may need to point to the right CA certificates using the environment variable WEBSOCKET_CLIENT_CA_BUNDLE, eg:
TEST_WITH_INTERNET=1 WEBSOCKET_CLIENT_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt python -m pytest websocket/tests