Skip to content

Commit

Permalink
refactor(transmit): mark createStream as internal only
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Sep 25, 2023
1 parent ed50a79 commit 80f08cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion providers/transmit_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class TransmitProvider {
const transmit = await this.app.container.make('transmit')

router.get('__transmit/events', ({ request, response }) => {
transmit.createStream(request, response)
transmit.$createStream(request, response)
})

router.post('__transmit/subscribe', (ctx) => {
Expand Down
2 changes: 1 addition & 1 deletion src/transmit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class Transmit extends Emittery<TransmitLifecycleHooks> {
/**
* Creates and register a new stream for the given request and pipes it to the response.
*/
createStream(request: Request, response: Response): void {
$createStream(request: Request, response: Response): void {
const stream = new Stream(request.input('uid'), request.request)
stream.pipe(response.response)

Expand Down

0 comments on commit 80f08cc

Please sign in to comment.