> On Jan 22, 2020, at 12:25 PM, Felipe Gasper wrote:
>
> Hi Dan,
>
> Thank you for your response!
>
> So, maybe what I need isn’t Test::Mojo. I have:
>
> -
> package t::MockApp;
>
> use Mojo::Base -strict;
>
> use Mojolicious::Lite;
>
> websocket '/my-websocket-endpoint'
Hi Dan,
Thank you for your response!
So, maybe what I need isn’t Test::Mojo. I have:
-
package t::MockApp;
use Mojo::Base -strict;
use Mojolicious::Lite;
websocket '/my-websocket-endpoint' => sub { ... }
-
… and I’d like my tested $ua (Mojo::UserAgent->new())
You mentioned using Test::Mojo - the test file you mentioned does this, it
tests both client and server.
-Dan
On Wed, Jan 22, 2020 at 10:38 AM Dan Book wrote:
> https://github.com/mojolicious/mojo/blob/master/t/mojo/websocket.t
>
> -Dan
>
> On Wed, Jan 22, 2020 at 10:34 AM Felipe Gasper
>
https://github.com/mojolicious/mojo/blob/master/t/mojo/websocket.t
-Dan
On Wed, Jan 22, 2020 at 10:34 AM Felipe Gasper
wrote:
> Hello,
>
> I see t/mojolicious/websocket_lite_app.t in the Mojolicious
> distribution, but this seems to test Mojo as a WS server. Are there any
> examples of
Hello,
I see t/mojolicious/websocket_lite_app.t in the Mojolicious
distribution, but this seems to test Mojo as a WS server. Are there any
examples of using Test::Mojo--or any other tool--to test Mojo-powered WS
clients?
Thank you!
-FG
--
You received this message because