#Get id through socket io connection

2 messages · Page 1 of 1 (latest)

simple cypress
#

We are implementing a chat service
There are two parts, the first part is that when connecting, we have to get the profile ID to see what user is connected
Then there is a part called room
that we want to create a room for each user and their id profile
How should this be handled?

I wrote this code, right?

light topazBOT
#

Suggestion for @simple cypress:
Please format your question or answer with Markdown formatting.
It leads to better readability and an easier time to spot problems.
For code blocks, you can wrap your block with three back ticks before and after the block, and after the first three back ticks you can add a language (like ts) to add syntax highlighting.
e.g.

```ts
@Injectable()
export class MySuperAwesomeService {
constructor(@Inject('InjectionToken') private readonly dep: SomeDependency) {}

getRandomNumber(): number {
return Math.round(Math.random() * 1000);
}
}
```

Becomes :point_down:

@Injectable()
export class MySuperAwesomeService {
  constructor(@Inject('InjectionToken') private readonly dep: SomeDependency) {}

  getRandomNumber(): number {
    return Math.round(Math.random() * 1000);
  }
}