Skip to content

FIX: transmitPublish not allowing interception#43

Merged
jondubois merged 1 commit into
SocketCluster:masterfrom
afdezayl:master
Aug 8, 2020
Merged

FIX: transmitPublish not allowing interception#43
jondubois merged 1 commit into
SocketCluster:masterfrom
afdezayl:master

Conversation

@afdezayl

@afdezayl afdezayl commented Aug 8, 2020

Copy link
Copy Markdown

In "MIDDLEWARE_INBOUND" middleware, "PUBLISH_IN" action type doesn´t change data when passing as parameter to function action.allow({ data: 'middleware message'}).
This problem appears only with "transmitPublish", "invokePublish" is working fine.

This change ensures middleware action updates "packet.data.data".

@jondubois jondubois merged commit e5bf9be into SocketCluster:master Aug 8, 2020
@jondubois

Copy link
Copy Markdown
Member

@afdezayl Thanks. Nice job with the test cases.

@jondubois

Copy link
Copy Markdown
Member

Published to npm socketcluster-server@16.0.1

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.

2 participants