Created
April 2, 2015 14:58
-
-
Save dat-vikash/858207b920ffac3dcb21 to your computer and use it in GitHub Desktop.
Play 2.2.x MockWebSocketChannel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait MockWebSocketChannel extends WebSocketChannel | |
{ | |
var mockWebSocketChannelQueue : List[JsValue] = List.empty | |
override def push(data: JsValue): Unit = mockWebSocketChannelQueue = mockWebSocketChannelQueue :+ data | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment