Skip to content

Commit c074475

Browse files
committed
docs: add a comment for the SignalR record separator
1 parent 62c666b commit c074475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model/events/content-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const mimeTypeToContentTypeMap: { [mimeType: string]: ViewableContentType } = {
125125
} as const;
126126

127127
export const jsonRecordsSeparators = [
128-
0x1E
128+
0x1E, // SignalR record separator https://github.com/dotnet/aspnetcore/blob/v8.0.0/src/SignalR/docs/specs/HubProtocol.md#json-encoding
129129
];
130130

131131
export function getContentType(mimeType: string | undefined): ViewableContentType | undefined {

0 commit comments

Comments
 (0)