to this broker and for each connection a goroutine is spawned. Clients send data to each other using an ID of themselves. So the broker should get the data from one client and pass it to the other. What would you recommend for the communication model?
just an ID -> Conn lookup table?
Use MQTT and topics maybe?
Обсуждают сегодня