question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EmitAsync doesn't work

See original GitHub issue

Hello,

When I do an EmitAsync of an event to receive it in my nodeJS server I get nothing no events go off, I have tried all of them, do you have a solution to make this work?

C# :

client.OnConnected += async (a, b) => {
    await client.EmitAsync("hi", "Je suis connecté");
};
await client.ConnectAsync();

NodeJS :

socket.on("hi", name => {
    console.log("hello");
});

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
whoishinacommented, Jun 30, 2021

I’ve check back my server config and this problem was resolved.

1reaction
doghappycommented, Jun 30, 2021

Please provide more information

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to send EmitAsync · Issue #24 · doghappy/socket.io ...
Im unable to emit event, as the_namespace is null and i receive an exception var client = new SocketIO("https://socket.stex.com/"); client.
Read more >
Using async in event emitter - node.js
That didn't seem to work as that was my first try. Events dont run async. Perhaps i made a coding error if you...
Read more >
@xen-orchestra/emit-async - npm package | Snyk
Is your project affected by vulnerabilities? Scan your projects for vulnerabilities. Fix quickly with automated fixes. Get started with Snyk for free.
Read more >
Events | NestJS - A progressive Node.js framework
Event Emitter package ( @nestjs/event-emitter ) provides a simple observer implementation, allowing you to subscribe and listen for various events that occur in ......
Read more >
How connect to the Laravel websocket? - Microsoft Q&A
On the client open a Powershell prompt and run this test using the name or IP address of the server. Copy. Test-NetConnection -ComputerName ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found