ninjasource / embedded-websocket

A rust websocket library for embedded systems (no_std)
Apache License 2.0
98 stars 28 forks source link

panic when closing websocket with status_description #16

Closed qwertyxcv83 closed 1 year ago

qwertyxcv83 commented 1 year ago

Websocket::close panics when status_description.is_some() due to length requirement of BigEndian::write_u16. Maybe replace Vec::new() with Vec::from_slice(&[0; 2]).unwrap().

ninjasource commented 1 year ago

Fixed! Thanks for bringing this to my attention.