S
S
squadbrodyaga2020-10-31 12:37:30
Node.js
squadbrodyaga, 2020-10-31 12:37:30

Is it possible to accept GET and POST requests with Socket.io?

You can somehow accept GET and POST requests using Socket.io. Like express, you can write something like this:

app.get('/', (req, res) => {
  // code...
})

Is there such a topic in socket io? Tipo:
Socket.get('/', (res, req) => {
  // code...
})

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VegasChickiChicki, 2020-10-31
@squadbrodyaga

No.

G
GF, 2020-10-31
@fomenkogregory

https://stackoverflow.com/questions/13802695/post-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question