Skip to content

feat: add option to expose http to socket - #398

Open
aylonmuramatsu wants to merge 1 commit into
nullstack:masterfrom
aylonmuramatsu:feat/add-expose-http-to-connect-socket
Open

feat: add option to expose http to socket#398
aylonmuramatsu wants to merge 1 commit into
nullstack:masterfrom
aylonmuramatsu:feat/add-expose-http-to-connect-socket

Conversation

@aylonmuramatsu

Copy link
Copy Markdown

Com esse ajuste ao passar .useHttp conseguimos ter acesso ao httpServer instance para adicionar o socket sem precisar do .less e ter conflito com porta

uso no server.js:

const context = Nullstack.start(Application)
const io = new Server(context.server.http)
context.io = io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant