Integration testing in CI - how to mock Sendbird calls

[Question]
My team has implemented a Web app using most of the feature of Sendbird’s SDK. Now we want to implement non-regression testing, using integration tests (not end-to-end, tests with all calls to Apis and sockets mocked).

We do have some unit tests, and this is not the point of this ticket. We plan to use Cypress/Playwright to implement tests that can reproduce a whole “happy path” (launch the app → Connect → open a conversation → send a message for example), and this without connecting to a real backend.

We want to do this to be able to reduce test time consumption and reliability (no real backend call === no network flackyness, especially important for CI testing!). What would be the best way to mock all interactions between Sendbird’s SDK and the api/websocket ?