#1 2023-07-12 08:28:43

flydev
Member
From: France
Registered: 2020-11-27
Posts: 73
Website

[SOLVED] OnWebSocketsClosed event is not triggered on client side

Hi,

it seem that OnWebSocketsClosed is not triggered on client side when compiled with last mORMo2 version.

I have the issue on Delphi 11, still not tested on FPC. I tested it with `rest-websockets` project from the example folder, compiling the server and client on a fresh clone.

You can find the client code with `OnWebSocketsClosed` implemented there:

https://gist.github.com/flydev-fr/93902 … a488e1edae

When compiling only the client with mORMot2 (commit fa3cd43097e1e9a89edee94ad0282b17817668a6 from May 12) I can get it working.

Last edited by flydev (2023-07-13 07:16:41)

Offline

#2 2023-07-13 07:18:04

flydev
Member
From: France
Registered: 2020-11-27
Posts: 73
Website

Re: [SOLVED] OnWebSocketsClosed event is not triggered on client side

FPC => OK

On Delphi 11, after adding ISDELPHI11 directive on top, cleaning dcu, it's OK.

Offline

#3 2023-07-13 07:31:35

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: [SOLVED] OnWebSocketsClosed event is not triggered on client side

ISDELPHI is set in mormot.defines.inc so you should not need to define it.

Cleaning dcu is always the first thing to do, after upgrading the mORMot source code.

Offline

Board footer

Powered by FluxBB