Closed bradtaniguchi closed 6 years ago
I found a small typo in the gateways doc examples in the Asynchronous responses section.
The code in the example is as followed:
@SubscribeMessage('events') onEvent(client, data: any: Observable<WsResponse<number>> { const event = 'events'; const response = [1, 2, 3]; return from(response).pipe( map(data => ({ event, data })), ); }
The onEvent function seems like its missing its closing ) character after data: any.
)
data: any
Issue within the code is found at this line
thanks for all the work done on NestJs, so far loving the framework 👍 😄
Thanks @bradtaniguchi! Fixed, will push soon
I found a small typo in the gateways doc examples in the Asynchronous responses section.
The code in the example is as followed:
The onEvent function seems like its missing its closing
)
character afterdata: any
.Issue within the code is found at this line
thanks for all the work done on NestJs, so far loving the framework 👍 😄