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

feature: new API and Proxy methods #25

Merged
merged 2 commits into from
Mar 17, 2023

Conversation

rustatian
Copy link
Member

Reason for This PR

ref: https://github.com/roadrunner-php/centrifugo/issues/6

Description of Changes

Proxy:

service CentrifugoProxy {
        rpc SubRefresh(SubRefreshRequest) returns (SubRefreshResponse);
}

For the SubRefresh request RoadRunner will send a subrefresh request type in the metadata.

API:

service CentrifugoApi {
  	rpc Batch(BatchRequest) returns (BatchResponse) {}
  	rpc DeviceRegister(DeviceRegisterRequest) returns (DeviceRegisterResponse) {}
  	rpc DeviceUpdate(DeviceUpdateRequest) returns (DeviceUpdateResponse) {}
  	rpc DeviceRemove(DeviceRemoveRequest) returns (DeviceRemoveResponse) {}
  	rpc DeviceList(DeviceListRequest) returns (DeviceListResponse) {}
  	rpc PushUserChannelList(PushUserChannelListRequest) returns (PushUserChannelListResponse) {}
  	rpc PushUserChannelUpdate(PushUserChannelUpdateRequest) returns (PushUserChannelUpdateResponse) {}
  	rpc SendPushNotification(SendPushNotificationRequest) returns (SendPushNotificationResponse) {}
}

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the MIT license.

PR Checklist

[Author TODO: Meet these criteria.]
[Reviewer TODO: Verify that these criteria are met. Request changes if not]

  • All commits in this PR are signed (git commit -s).
  • The reason for this PR is clearly provided (issue no. or explanation).
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.
  • Any user-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.

Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
@rustatian rustatian added the enhancement New feature or request label Mar 17, 2023
@rustatian rustatian requested a review from wolfy-j March 17, 2023 08:56
@rustatian rustatian self-assigned this Mar 17, 2023
@rustatian rustatian merged commit 04c415f into master Mar 17, 2023
@rustatian rustatian deleted the feature/new-api-and-proxy-methods branch March 17, 2023 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Archived in project
1 participant