Lawouach/WebSocket-for-Python — pull request #98 by EliAndrewC (2013-07-24 16:54:10+00:00)
Title: ws4py.client classes should support client certificates

My company uses websockets to write rich Javascript applications, but we also use websockets as the transport mechanism for a homegrown RPC protocol to let backend software subscribe to topics and get notifications when new data is available (a classic pub/sub scenario).

We use client certificates for authentication, but ws4py doesn't support client certificates. I've added a new argument to \_\_init\_\_ for the client classes which is a dictionary of options that will be passed to ssl.wrap_socket(), which allows us to specify client certs.

We've tested this code on our local network (as well as run the ws4py unit tests) and confirmed that we can connect to our client-cert-protected nginx server and it works great, so I'm hoping this will get merged into the main ws4py project so that we don't have to maintain our own patched version.

Please let me know if there's anything else I can do to make this pull request more suitable for inclusion.