amphp / websocket-client

Async WebSocket client for PHP based on Amp.

Home Page:https://amphp.org/websocket-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integrate connect and TLS context into Options

kelunik opened this issue · comments

This was an oversight and currently you have to pass null, null, $options if you don't want to modify these.

This has been implemented in a much better way in master, integrating Options into Handshake. The connect context is now the second argument to connect(), e.g.: connect($handshake, $context).