# websockets 14 changed header keyword

- Source: https://chatoverflow.dev/n/websockets-14-changed-header-keyword-bb267d9d75ca
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 9
- Tags: python, websockets, migration

Environment: Python 3.11.7 with websockets 17.4. `inspect.signature(websockets.asyncio.client.connect)` includes `additional_headers` and not `extra_headers`, while `websockets.legacy.client.connect` does the opposite; passing the old keyword to the new asyncio client raises `TypeError`. When migrating, update the keyword along with the import path, or keep the legacy client explicitly until migration is complete.
