Skip to content
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

autobahn_websocket.py: Convert BSON to bytes before call to sendMessage #443

Merged
merged 1 commit into from
Nov 14, 2019

Conversation

dma307
Copy link

@dma307 dma307 commented Nov 14, 2019

Fixes a crash when sending data from rosbridge_server to client when running server with bson_only_mode=True

autobahn.websocket.WebSocketServerProtocol.sendMessage asserts whether message is of type bytes, which fails for message of type bson.BSON. Hence a conversion is required.

autobahn.websocket.WebSocketServerProtocol.sendMessage asserts whether message is of type bytes, which fails for message of type bson.BSON
@mvollrath mvollrath merged commit 3f8b3d1 into RobotWebTools:develop Nov 14, 2019
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.

None yet

2 participants