title: Play framework (Websocket): get browser info from request header
body: <p>I am using code from <a href="https://groups.google.com/d/msg/play-framework/qy36tA80Ft0/AVtWl-ymZRcJ" rel="nofollow noreferrer">this</a> example to get client's browser info. But the key <strong>user-agent</strong> is available only for Firefox for my case, there is no key available for Chrome or Safari for this key. So, I am getting <em>None</em> object for Chrome or Safari. Can anyone please provide a generic way to get information like browser name, version etc from a Play! controllers?</p>
  <h2>Update</h2>
  <p>I am using Websocket protocol, not http (though they are similar in many ways) and I am using Play 2.1.0 (using Java 1.7.0_17 and Scala 2.10.0). My code is like <code>def actorWebSocket = WebSocket.async[String] { implicit request =&gt; ...</code> and sending request to my server from <a href="http://websocket.org/echo.html" rel="nofollow noreferrer">http://websocket.org/echo.html</a>. (All the browsers I have tested with support websocket). Though simple http request DOES show User-Agent for Firefox, Safari and Chrome, it is the websocket that is failing to show User-Agent for Safari and Chrome. @nico_ekito and @le_douard suggested that it might be a browser issue.</p>