S
S
Safronov_Alexei2020-07-02 14:16:06
Python
Safronov_Alexei, 2020-07-02 14:16:06

How to get information from a request in WebSocket?

Created a python web socket server that accepts and registers users in a dictionary.
But I want to register them by rooms and I thought to do this by getting the name of the room in the request. That is, the request is as follows:

ws://IP:PORT/name?='Jora'room?='45'

And on the web socket server I want to receive the data name='jora' and room='45'.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-07-02
@Safronov_Alexei

1. And we should guess what library you created the server with?
2. Well, you can not pass these GET request parameters, but resolve them by passing such data in the connection itself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question