Skip to content

Instantly share code, notes, and snippets.

@dat-vikash
Created April 2, 2015 14:58
Show Gist options
  • Save dat-vikash/858207b920ffac3dcb21 to your computer and use it in GitHub Desktop.
Save dat-vikash/858207b920ffac3dcb21 to your computer and use it in GitHub Desktop.
Play 2.2.x MockWebSocketChannel
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