play2-sockjs 用于SockJS服务器实现。 play2-sockjs api旨在与Play Framework提供的WebSocket尽可能相似: // Play WebSocket api: def websocket = WebSocket .using[ String ](handler) // play2-sockjs api: def sockjs = SockJS .using[ String ](handler) // same request handler val handler = { ( request : RequestHeader ) => //