Custom send-event is not being in OwnCapabilities
Maintainers usually reply within 1 day
@oliverlaz is already working on this.
Since Nov 10, 2025.
Assessment
This issue has not been assessed yet.
Description
Which package/packages do you use?
-
@stream-io/video-react-sdk -
@stream-io/video-react-native-sdk -
@stream-io/video-client
Describe the bug
- When sending custom event I had to setup
send-eventcall type grant, which i did not find documented either in https://getstream.io/video/docs/react/guides/custom-events/ or https://getstream.io/video/docs/react/advanced/events/ - But the bug I see is that i do not see this in capabilities on the client, nor there is custom capability that i can check, if user can send custom events
To Reproduce
Steps to reproduce the behavior:
If you for example invoke this custom event warnUser for warning users, you need to have send-event as a setup grant.
import type { Call, UserResponse } from '@stream-io/video-react-sdk';
type WarnUserEvent = {
type: 'warning';
warn_by_user: Pick<UserResponse, 'name' | 'id'>;
user: Pick<UserResponse, 'name' | 'id'>;
};
export const useCallWarning = (call: Call) => {
const warnUser = (
issuer: WarnUserEvent['warn_by_user'],
user: WarnUserEvent['user'],
) =>
call.sendCustomEvent({
type: 'warning',
warn_by_user: issuer,
user,
} satisfies WarnUserEvent);
const onWarn = (event: WarnUserEvent) => {
console.log('onWarn', event);
};
const isWarnEvent = (event: Record<string, any>): event is WarnUserEvent =>
event.type === 'warning';
return { warnUser, onWarn, isWarnEvent };
};
And if i filter later in my component:
const { useOwnCapabilities } = useCallStateHooks();
const capabilities = useOwnCapabilities();
const canSendCustomEvent = capabilities?.includes('send-event');
I do not see send-event in capabilities althought the code works and events are being sent and received.
Expected behavior
I would expect:
send-eventto be in capabilities listsend-eventcapability would be available onOwnCapabilityobject eg.OwnCapability.SEND_EVENT
Screenshots
If applicable, add screenshots to help explain your problem.
Version
- SDK version:
"@stream-io/video-react-sdk": "^1.25.0" - It is a React application with PHP backend
- Dominant language
- TypeScript
- Stars
- 125
- Forks
- 49
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 82
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GetStream/stream-video-js
-
video-filters-web: queued output VideoFrames leak on stop() — "A VideoFrame was garbage collected without being closed"May be free again @jdimovska claimed this 96 days ago, and no pull request is open. Open
GetStream/stream-video-js#2384 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
GetStream/stream-video-js#2338 · 3 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 42/100
GetStream/stream-video-js#2146 · 2 comments ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
GetStream/stream-video-js#1992 · 2 comments ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
GetStream/stream-video-js#1988 · 8 comments ·
Maintainers usually reply within 1 day
All issues in GetStream/stream-video-js
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
siyuan-note/siyuan#21692 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
GetStream/stream-chat-react#3467 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
resend/resend-node#1206 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cloudflare/cloudflare-typescript#2821 ·