diff options
author | Felix Dörre <felix@dogcraft.de> | 2023-06-28 21:46:37 +0000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-02-26 12:20:40 +1100 |
commit | 8547a782750c12a163e0cd022fefc2aaaa4b1bb7 (patch) | |
tree | 9e1288c3dddcd9930740ffb650db3a12a5d4ab55 /examples/usercmodule/cppexample/example.cpp | |
parent | b5edaf68cd2f8bad2dbb3293038a11a9c2108a82 (diff) | |
download | micropython-8547a782750c12a163e0cd022fefc2aaaa4b1bb7.tar.gz micropython-8547a782750c12a163e0cd022fefc2aaaa4b1bb7.zip |
extmod/modwebsocket: Fix websocket to send correct close frame.
When the websocket closes currently, it does not send a proper
"close"-frame, but rather encodes the 0x8800-sequence inside a binary
packet, which is wrong. The close packet is a different kind of websocket
frame, according to https://www.rfc-editor.org/rfc/rfc6455.
This change resolves an error in Firefox when the websocket closes.
Signed-off-by: Felix Dörre <felix@dogcraft.de>
Diffstat (limited to 'examples/usercmodule/cppexample/example.cpp')
0 files changed, 0 insertions, 0 deletions