diff --git a/http-server/Route/Annotation/Websocket.php b/http-server/Route/Annotation/Websocket.php index d797e9f0..fa4d13dd 100644 --- a/http-server/Route/Annotation/Websocket.php +++ b/http-server/Route/Annotation/Websocket.php @@ -54,9 +54,9 @@ class Websocket extends Annotation */ public function getName($events, $comment) { - $prefix = 'WEBSOCKET:ANNOTATION:' . $events; + $prefix = rtrim('WEBSOCKET:ANNOTATION:' . $events, ':'); if (isset($comment[2])) { - return rtrim($prefix, ':') . ':' . $comment[2]; + return $prefix . ':' . $comment[2]; } return $prefix; }