PromucFlow_constructor/app/client/packages/rts/src/constants/socket.ts
Valera Melnikov 9f607d250d
chore: move local dependency to packages (#23395)
## Description
1. Move everything related to client from app folder to client folder
(`.yarn`, `yarn.lock`, package.json, .gitignore)
2. Move `ast` and `rst` to client packages
3. Fix running scripts in packages
4. Add running unit tests in packages in CI

TODO: It is necessary to consider enabling the `nmHoistingLimits:
workspaces` option, since now all packages are hoisted to the root,
there may be issues with dependencies in workspaces. Also, there is a
possibility of implicit use of packages.

https://yarnpkg.com/configuration/yarnrc#nmHoistingLimits

#### PR fixes following issue(s)
Fixes #23333

#### Type of change
- Chore (housekeeping or task changes that don't impact user perception)

## Testing

#### How Has This Been Tested?
- [x] Manual
- [x] Jest
- [x] Cypress

## Checklist:
#### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag

Co-authored-by: Valera Melnikov <melnikov.vv@greendatasoft.ru>
2023-05-22 15:55:46 +03:00

12 lines
536 B
TypeScript

export const APP_ROOM_PREFIX = "app:";
export const PAGE_ROOM_PREFIX = "page:";
export const ROOT_NAMESPACE = "/";
export const PAGE_EDIT_NAMESPACE = "/page/edit";
export const EDITORS_EVENT_NAME = "collab:online_editors";
export const START_EDIT_EVENT_NAME = "collab:start_edit";
export const LEAVE_EDIT_EVENT_NAME = "collab:leave_edit";
export const MOUSE_POINTER_EVENT_NAME = "collab:mouse_pointer";
export const RELEASE_VERSION_EVENT_NAME = "info:release_version";
export const PAGE_VISIBILITY_EVENT_NAME = "info:page_visibility";