Skip to content

Commit b600553

Browse files
committed
Add SetupPayload
1 parent 680976a commit b600553

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/rsocket-types/src/ReactiveSocketTypes.js

+13
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,19 @@ export type Payload<D, M> = {|
174174
metadata: ?M,
175175
|};
176176

177+
178+
/**
179+
* A single unit of data for connection from the peers of a `ReactiveSocket`.
180+
*/
181+
export type SetupPayload<D, M> = {|
182+
data: ?D,
183+
metadata: ?M,
184+
keepAlive: number,
185+
lifetime: number,
186+
metadataMimeType: ?string,
187+
dataMimeType: ?string
188+
|};
189+
177190
export type Frame =
178191
| CancelFrame
179192
| ErrorFrame

0 commit comments

Comments
 (0)