Просмотр исходного кода

[misc] Router: prefix the publicId with 'P.' for easy differentiation

Jakob Ackermann 6 лет назад
Родитель
Сommit
32af7001fc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/real-time/app/coffee/Router.coffee

+ 1 - 1
services/real-time/app/coffee/Router.coffee

@@ -68,7 +68,7 @@ module.exports = Router =
 				return
 
 			# send positive confirmation that the client has a valid connection
-			client.publicId = base64id.generateId()
+			client.publicId = 'P.' + base64id.generateId()
 			client.emit("connectionAccepted", null, client.publicId)
 
 			metrics.inc('socket-io.connection')