Update ws dependency to 8.21.1

Updated the ws WebSocket library from version 8.18.2 to 8.21.1 to pull in the latest bug fixes and improvements.