MCPcopy Create free account

hub / github.com/casouri/collab-mode / functions

Functions852 in github.com/casouri/collab-mode

↓ 668 callersMethodclone
* The **`clone()`** method of the Request interface creates a copy of the current `Request` object. * * [MDN Reference](https://developer.mo
worker/worker-configuration.d.ts:1773
↓ 259 callersMethodto_string
(&self)
collab_mode/src/signaling.rs:135
↓ 91 callersMethodsend
(message: Body, options?: QueueSendOptions)
worker/worker-configuration.d.ts:1919
↓ 90 callersMethodlen
Return the length of the range.
collab_mode/src/engine.rs:66
↓ 83 callersMethodpush
Push a message onto the recipient’s inbox.
collab_mode/src/webchannel.rs:1244
↓ 79 callersMethodget
(key: string, options: R2GetOptions & { onlyIf: R2Conditional | Headers; })
worker/worker-configuration.d.ts:2011
↓ 75 callersMethoditer
Iterate over all remote docs.
collab_mode/src/server.rs:784
↓ 48 callersMethodsend_resp
(&self, result: impl Serialize, error: Option<lsp_server::ResponseError>)
collab_mode/src/server.rs:5060
↓ 45 callersMethodinsert
(&mut self, text: &str)
collab_mode/src/server/transcript_tests.rs:49
↓ 45 callersMethodsend_to_remote
(&self, host_id: &ServerId, msg: Msg)
collab_mode/src/server.rs:5064
↓ 43 callersFunctionsetup_hub_and_spoke_servers
( factory: &TestChannelFactory, num_spokes: usize, spoke_permissions: Option<Vec<Permission>>, )
collab_mode/src/server/tests/mod.rs:626
↓ 40 callersMethodrecv
Receive from either channels.
collab_mode/src/webchannel.rs:165
↓ 38 callersMethodinto
(self)
collab_mode/src/signaling.rs:252
↓ 37 callersMethodwait_for_notification
( &mut self, method: &str, timeout_secs: u64, )
collab_mode/src/server/tests/mod.rs:280
↓ 34 callersMethodcleanup
(self)
collab_mode/src/server/tests/mod.rs:611
↓ 33 callersMethodsend_ops
( &mut self, file: serde_json::Value, ops: Vec<serde_json::Value>, )
collab_mode/src/server/tests/mod.rs:485
↓ 32 callersMethodget_cursor
Return a copy of the cursor for `site`.
collab_mode/src/engine.rs:306
↓ 30 callersMethodsend_request
( &self, req_id: i32, method: &str, params: serde_json::Value, )
collab_mode/src/server/tests/mod.rs:232
↓ 30 callersMethodwait_for_response
( &mut self, req_id: i32, timeout_secs: u64, )
collab_mode/src/server/tests/mod.rs:351
↓ 29 callersMethoddeclare_project
Helper: Declare a project.
collab_mode/src/server/tests/mod.rs:543
↓ 29 callersMethodinsert
Insert a remote doc.
collab_mode/src/server.rs:725
↓ 29 callersMethodsend_notif
(&self, method: T, params: impl Serialize)
collab_mode/src/server.rs:5056
↓ 27 callersFunctiontest
(op: O, base: O, result: O)
collab_mode/src/op.rs:303
↓ 26 callersMethodcount
* The **`console.count()`** static method logs the number of times that this particular call to `count()` has been called. * * [MDN Referenc
worker/worker-configuration.d.ts:117
↓ 26 callersMethodremove
()
worker/worker-configuration.d.ts:1571
↓ 22 callersMethodopen_file
( &mut self, file_desc: serde_json::Value, )
collab_mode/src/server/tests/mod.rs:457
↓ 22 callersMethodrequest
Helper: Send request and wait for response in one call.
collab_mode/src/server/tests/mod.rs:393
↓ 21 callersMethodget_mut
Get a mutable remote doc by (ServerId, DocId).
collab_mode/src/server.rs:742
↓ 20 callersMethodhost_id
Get the host_id from this EditorFileDesc
collab_mode/src/types.rs:219
↓ 18 callersMethodbind
Bind to a signaling server. No-op if already bound to the same address.
collab_mode/src/signaling/client.rs:72
↓ 18 callersMethodconvert_pos
Convert a editor pos to a internal doc pos if `editor_pos` is true, and the other way around if false. This also moves the cursor to around editor pos
collab_mode/src/engine.rs:323
↓ 18 callersFunctioncreate_test_project
Creates a test project directory with some sample files.
collab_mode/src/server/tests/mod.rs:880
↓ 17 callersMethodapply_ins
Apply an insertion as internal position `pos` of `len` characters. `cursor` should point to the range that receives the insertion.
collab_mode/src/engine.rs:424
↓ 17 callersMethodis_live
Return true for live text, false for dead text.
collab_mode/src/engine.rs:55
↓ 16 callersMethodprocess_remote_op
Process remote op, transform it and add it to history. Return the ops for the editor to apply, if any.
collab_mode/src/engine.rs:1593
↓ 15 callersFunctionassert_ranges_eq
Helper function to compare ranges
collab_mode/src/engine/tests/internal_doc_tests.rs:15
↓ 15 callersFunctioncreate_cursor
Helper function to create a cursor
collab_mode/src/engine/tests/internal_doc_tests.rs:6
↓ 15 callersFunctioncreate_key_cert
Return a freshly generated key and certificate for `name`.
collab_mode/src/config_man.rs:87
↓ 14 callersFunctioncreate_test_id
Helper to create a unique test endpoint id whose hash portion matches `key_cert`.
collab_mode/src/webchannel/e2e_tests.rs:107
↓ 14 callersFunctioncreate_test_key_cert
Helper to create test key/cert pairs.
collab_mode/src/webchannel/e2e_tests.rs:101
↓ 12 callersFunctionparseIdentity
(header: string)
worker/src/auth.ts:21
↓ 12 callersMethodshutdown
(&self)
collab_mode/src/webchannel.rs:646
↓ 11 callersMethodapply_mark_dead
Mark the range from `pos` to `pos` + `len` as dead. `cursor` should point to the first [Range] in the range. Return the affected ranges that was actua
collab_mode/src/engine.rs:505
↓ 11 callersMethodclose
()
worker/worker-configuration.d.ts:3229
↓ 11 callersMethodconfig
Get a copy of the loaded configuration
collab_mode/src/config_man.rs:331
↓ 11 callersMethodprocess_local_op
Process local op, convert each op to two things: FatOp and EditInstruction. Apply FatOps to internal doc, and add to history; return the EditInstructi
collab_mode/src/engine.rs:1508
↓ 11 callersMethodspawn
Spawn a task that is dropped (cancelled) when this cancel manager is cancelled, and is registered with the shared tracker.
collab_mode/src/cancel.rs:66
↓ 10 callersMethodabort
()
worker/worker-configuration.d.ts:2028
↓ 10 callersFunctiongenerateKeyCert
(name: string)
worker/src/auth.test.ts:29
↓ 10 callersFunctionmake_editor_fatop
(op: EditorOp, group_seq: GroupSeq)
collab_mode/src/engine.rs:1846
↓ 10 callersMethodpos
Return the editor_pos if `editor_pos` is true; return internal_pos otherwise.
collab_mode/src/engine.rs:104
↓ 10 callersMethodshare_file
( &mut self, filename: &str, content: &str, meta: serde_json::Value, )
collab_mode/src/server/tests/mod.rs:562
↓ 9 callersFunctionapply
(doc: &mut String, op: &EditInstruction)
collab_mode/src/engine.rs:1828
↓ 9 callersMethodapply_mark_live
Mark the range from `pos` to `pos` + `len` as live. `cursor` should point to the first [Range] in the range.
collab_mode/src/engine.rs:692
↓ 9 callersMethodcert_der_hash
Return the certificate in DER format, hashed with SHA-256, and printed out fingerprint format: each byte in uppercase hex, separated by colons.
collab_mode/src/config_man.rs:44
↓ 9 callersMethodcheck_connection
If connection to `host_id` isn’t active, send ConnectionBroke response and return false. Always return true of `host_id` is equal to our own host id.
collab_mode/src/server.rs:4678
↓ 9 callersMethodscenario
Run a single scenario: drain stale events, print a header, time the op, then drain events for a 1s window.
collab_mode/src/bin/test_filewatch.rs:23
↓ 8 callersMethodconvert_internal_op_and_apply
Convert internal `op` from internal pos to editor pos, and apply it to the internal_doc.
collab_mode/src/engine.rs:1008
↓ 8 callersMethodcreate_sock
Create a [`Sock`] for communicating with `peer_id` through the client bound to `signaling_addr`.
collab_mode/src/signaling/client.rs:99
↓ 8 callersMethoddrain
Drain the recipient’s inbox and clone its msg_tx so the caller can `send` outside the lock.
collab_mode/src/webchannel.rs:1255
↓ 8 callersMethodget_remote_doc
Get a remote doc by `EditorFileDesc`. Returns the remote doc id and an immutable reference to the doc if found.
collab_mode/src/server.rs:3314
↓ 8 callersMethodmark_remote_failed
(&mut self, peer: &ServerId, reason: String)
collab_mode/src/server.rs:410
↓ 8 callersMethodrange_len
Return the length of the current range.
collab_mode/src/engine.rs:173
↓ 8 callersMethodreplace_and_save
Override with a new config and save to disk
collab_mode/src/config_man.rs:390
↓ 8 callersMethodrun
Run the actor in a loop and handle messages.
collab_mode/src/signaling/client.rs:462
↓ 8 callersMethodsend_notification
( &self, method: &str, params: serde_json::Value, )
collab_mode/src/server/tests/mod.rs:217
↓ 7 callersMethodbuild_channel
Build a `WebChannel` wired into this factory.
collab_mode/src/webchannel.rs:1289
↓ 7 callersMethodconvert_editor_op_and_apply
Convert the position of `op` to internal doc position, and apply it to the internal doc.
collab_mode/src/engine.rs:962
↓ 7 callersFunctionestablish_connection_pair
Establish complete bidirectional connection between two WebChannels. This handles the entire signaling handshake and WebRTC connection setup.
collab_mode/src/webchannel/e2e_tests.rs:234
↓ 7 callersMethodget_ops_applied
(&self)
collab_mode/src/server/transcript_tests.rs:204
↓ 7 callersMethodis_dead
Return false for live text, true for dead text.
collab_mode/src/engine.rs:62
↓ 7 callersMethodprocess_ops
Process `op` from a client, return the transformed `ops`.
collab_mode/src/engine.rs:1790
↓ 7 callersMethodsignaling_url
(&self)
collab_mode/src/webchannel/e2e_tests.rs:85
↓ 7 callersFunctionverifyIdentity
(identity: Identity, signatureB64: string)
worker/src/auth.ts:61
↓ 6 callersFunctionapply_editor_op
(doc: &mut String, op: &EditorOp)
collab_mode/src/engine.rs:1816
↓ 6 callersMethodcancel
* The **`cancel()`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled. * * [MDN Reference]
worker/worker-configuration.d.ts:2224
↓ 6 callersMethodconnect
* Connect directly to Hyperdrive as if it's your database, returning a TCP socket. * * Calling this method returns an identical socket to if
worker/worker-configuration.d.ts:11462
↓ 6 callersMethodfix_world_next
Ask the main loop to run `fix_world` on its next iteration.
collab_mode/src/server.rs:1211
↓ 6 callersMethodget_key_and_cert
Load or create and write a self-signed key/cert pair for `name`.
collab_mode/src/config_man.rs:252
↓ 6 callersFunctionhashCert
(certDer: Uint8Array)
worker/src/auth.ts:50
↓ 6 callersFunctionid_hash
Returns the cert-hash portion of a [`ServerId`]. Splits on the first `::`; if there's no `::`, treat the whole id as the hash.
collab_mode/src/types.rs:48
↓ 6 callersFunctioninit_test_tracing
()
collab_mode/src/server/tests/mod.rs:22
↓ 6 callersMethodmaybe_package_local_ops
Return packaged local ops if it’s appropriate time to send them out, return None if there’s no pending local ops or it’s not time. (Client can only se
collab_mode/src/engine.rs:1437
↓ 6 callersMethodmove_right
Move to the right by one, return the current range. Caller must make sure this doesn’t overflow.
collab_mode/src/engine.rs:212
↓ 6 callersFunctionnew_connection_id
Create a new connection id.
collab_mode/src/server.rs:300
↓ 6 callersFunctionpos_less_than
(pos1: u64, pos2: u64, site1: &SiteId, site2: &SiteId)
collab_mode/src/op.rs:65
↓ 6 callersFunctionsend_to_remote
Send a message to a remote host via WebChannel with error logging.
collab_mode/src/server.rs:5112
↓ 6 callersMethodshift_cursors_right
Shift all the cursors whose range_idx is equal or after `idx` by `delta` to the right, and shift their range_idx by `range_idx_delta` to the right.
collab_mode/src/engine.rs:408
↓ 6 callersFunctionsign_identity
Build an [`Identity`] for `key_cert` with the current timestamp and sign it with the matching private key. Return the identity and the signied signatu
collab_mode/src/signaling/auth.rs:25
↓ 5 callersMethodconnect_test
In-process routing via `TestRemote`.
collab_mode/src/webchannel.rs:445
↓ 5 callersFunctionconsume_automatic_messages
Consume automatic messages from channel (Hey and ICE progress)
collab_mode/src/webchannel/e2e_tests.rs:136
↓ 5 callersFunctioncreate_complex_project
Creates a complex project directory with nested structure.
collab_mode/src/server/tests/mod.rs:907
↓ 5 callersFunctioncreate_test_id
(name: &str)
collab_mode/src/webchannel.rs:1400
↓ 5 callersFunctioncreate_test_signaling_server
Helper to create a test signaling server and return its address
collab_mode/src/signaling/client_tests.rs:12
↓ 5 callersMethoddeserializeAttachment
()
worker/worker-configuration.d.ts:3149
↓ 5 callersFunctionencodeMsg
(msg: SignalingMsg)
worker/src/messages.ts:36
↓ 5 callersFunctionexpand_project_paths
Helper function to expand project paths to absolute paths
collab_mode/src/server.rs:5142
↓ 5 callersMethodgetWebSockets
(tag?: string)
worker/worker-configuration.d.ts:547
↓ 5 callersMethodget_content
(&self)
collab_mode/src/server/transcript_tests.rs:200
↓ 5 callersMethodhostid
(&self)
collab_mode/src/webchannel.rs:350
next →1–100 of 852, ranked by callers