in index.d.ts to avoid TypeScript errors. Or better yet, because Server extends WebSocket.Server, these should be removed all together (unless it is currently serving a greater purpose).
@TekuConcept I think the reason for this duplication is for preserving the return type, to allow e.g. server.on('error', onError).on('stream', onStream).
should become
in
index.d.ts
to avoid TypeScript errors. Or better yet, because Server extends WebSocket.Server, these should be removed all together (unless it is currently serving a greater purpose).Looks like PR #152 resolves this issue.