wslay_event_shutdown_read() prevents the event-based API context from reading any further data from peer.
This function may be used with wslay_event_queue_close() if the application detects error in the data received and wants to fail WebSocket connection.