Thanks to visit codestin.com
Credit goes to github.com

Skip to content

extmod/uwebsocket: Support masked transmissions and handling of PING requests #6732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

jthacker
Copy link

This PR add the essential client side features (response to PING requests and payload masking on transmission) to the uwebsocket module to allow micropython targets to use client side websockets.

  • Adds a new keyword argument, "mask_writes", to allow clients to decide if write masking should be performed or not.
  • Adds automatic responses to PING requests with a PONG response

A previous PR (#3406) was opened to address this but appears to be abandoned. Issues that were brought up there have been addressed here outside of the request around non-blocking writes. Ideally, this could be handled as a separate PR.

@jthacker jthacker changed the title Feat/uwebsocket improvements extmod/uwebsocket: Support masked transmissions and handling of PING requests Dec 25, 2020
@jthacker jthacker force-pushed the feat/uwebsocket-improvements branch 2 times, most recently from fee75da to 966b1d6 Compare December 25, 2020 15:58
The websocket specification requires that clients mask data going
to the server. rfc6455 has more details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant