# Collaborative editing with OT on Client side

**URL:** https://discuss.prosemirror.net/t/collaborative-editing-with-ot-on-client-side/5789
**Category:** Uncategorized
**Created:** [August 25, 2023, 3:20pm UTC](https://discuss.prosemirror.net/t/collaborative-editing-with-ot-on-client-side/5789 "2023-08-25T15:20:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kowtha-sathwik](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/kowtha-sathwik/32/3529_2.png) [@kowtha-sathwik](https://discuss.prosemirror.net/u/kowtha-sathwik)
#### Post date: [August 25, 2023, 3:20pm UTC](https://discuss.prosemirror.net/t/collaborative-editing-with-ot-on-client-side/5789/1 "2023-08-25T15:20:31Z")

</div>

Hi i am trying to achieve collaborative editing and want to perform OT on client side. I have few questions

How to transform client steps with respect to server doc will receiveTransaction handle that ? because i want to send transformed client steps to all other active clients, or should i rebase each step if so how to do that, with step.map method ?

In my current approach as i want to resolve conflict on client side i am fetching all server steps applying them and then trying to transform client steps on top of the new state is this approach correct ?

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)
#### Post date: [August 25, 2023, 8:12pm UTC](https://discuss.prosemirror.net/t/collaborative-editing-with-ot-on-client-side/5789/2 "2023-08-25T20:12:51Z")

</div>

> [@kowtha-sathwik](#):
>
> How to transform client steps with respect to server doc will receiveTransaction handle that ?

Yes, it will transform unconfirmed local steps over the received steps.

---

<div class="post-metadata">

### Author: ![kowtha-sathwik](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/kowtha-sathwik/32/3529_2.png) [@kowtha-sathwik](https://discuss.prosemirror.net/u/kowtha-sathwik)
#### Post date: [August 30, 2023, 4:04am UTC](https://discuss.prosemirror.net/t/collaborative-editing-with-ot-on-client-side/5789/3 "2023-08-30T04:04:32Z")

</div>

When will steps be confirmed after applying transaction to state ? if so if we have a conflict they should be re transformed right ?
