Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/casouri/collab-mode
/ functions
Functions
852 in github.com/casouri/collab-mode
⨍
Functions
852
◇
Types & classes
667
↓ 668 callers
Method
clone
* 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 callers
Method
to_string
(&self)
collab_mode/src/signaling.rs:135
↓ 91 callers
Method
send
(message: Body, options?: QueueSendOptions)
worker/worker-configuration.d.ts:1919
↓ 90 callers
Method
len
Return the length of the range.
collab_mode/src/engine.rs:66
↓ 83 callers
Method
push
Push a message onto the recipient’s inbox.
collab_mode/src/webchannel.rs:1244
↓ 79 callers
Method
get
(key: string, options: R2GetOptions & { onlyIf: R2Conditional | Headers; })
worker/worker-configuration.d.ts:2011
↓ 75 callers
Method
iter
Iterate over all remote docs.
collab_mode/src/server.rs:784
↓ 48 callers
Method
send_resp
(&self, result: impl Serialize, error: Option<lsp_server::ResponseError>)
collab_mode/src/server.rs:5060
↓ 45 callers
Method
insert
(&mut self, text: &str)
collab_mode/src/server/transcript_tests.rs:49
↓ 45 callers
Method
send_to_remote
(&self, host_id: &ServerId, msg: Msg)
collab_mode/src/server.rs:5064
↓ 43 callers
Function
setup_hub_and_spoke_servers
( factory: &TestChannelFactory, num_spokes: usize, spoke_permissions: Option<Vec<Permission>>, )
collab_mode/src/server/tests/mod.rs:626
↓ 40 callers
Method
recv
Receive from either channels.
collab_mode/src/webchannel.rs:165
↓ 38 callers
Method
into
(self)
collab_mode/src/signaling.rs:252
↓ 37 callers
Method
wait_for_notification
( &mut self, method: &str, timeout_secs: u64, )
collab_mode/src/server/tests/mod.rs:280
↓ 34 callers
Method
cleanup
(self)
collab_mode/src/server/tests/mod.rs:611
↓ 33 callers
Method
send_ops
( &mut self, file: serde_json::Value, ops: Vec<serde_json::Value>, )
collab_mode/src/server/tests/mod.rs:485
↓ 32 callers
Method
get_cursor
Return a copy of the cursor for `site`.
collab_mode/src/engine.rs:306
↓ 30 callers
Method
send_request
( &self, req_id: i32, method: &str, params: serde_json::Value, )
collab_mode/src/server/tests/mod.rs:232
↓ 30 callers
Method
wait_for_response
( &mut self, req_id: i32, timeout_secs: u64, )
collab_mode/src/server/tests/mod.rs:351
↓ 29 callers
Method
declare_project
Helper: Declare a project.
collab_mode/src/server/tests/mod.rs:543
↓ 29 callers
Method
insert
Insert a remote doc.
collab_mode/src/server.rs:725
↓ 29 callers
Method
send_notif
(&self, method: T, params: impl Serialize)
collab_mode/src/server.rs:5056
↓ 27 callers
Function
test
(op: O, base: O, result: O)
collab_mode/src/op.rs:303
↓ 26 callers
Method
count
* 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 callers
Method
remove
()
worker/worker-configuration.d.ts:1571
↓ 22 callers
Method
open_file
( &mut self, file_desc: serde_json::Value, )
collab_mode/src/server/tests/mod.rs:457
↓ 22 callers
Method
request
Helper: Send request and wait for response in one call.
collab_mode/src/server/tests/mod.rs:393
↓ 21 callers
Method
get_mut
Get a mutable remote doc by (ServerId, DocId).
collab_mode/src/server.rs:742
↓ 20 callers
Method
host_id
Get the host_id from this EditorFileDesc
collab_mode/src/types.rs:219
↓ 18 callers
Method
bind
Bind to a signaling server. No-op if already bound to the same address.
collab_mode/src/signaling/client.rs:72
↓ 18 callers
Method
convert_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 callers
Function
create_test_project
Creates a test project directory with some sample files.
collab_mode/src/server/tests/mod.rs:880
↓ 17 callers
Method
apply_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 callers
Method
is_live
Return true for live text, false for dead text.
collab_mode/src/engine.rs:55
↓ 16 callers
Method
process_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 callers
Function
assert_ranges_eq
Helper function to compare ranges
collab_mode/src/engine/tests/internal_doc_tests.rs:15
↓ 15 callers
Function
create_cursor
Helper function to create a cursor
collab_mode/src/engine/tests/internal_doc_tests.rs:6
↓ 15 callers
Function
create_key_cert
Return a freshly generated key and certificate for `name`.
collab_mode/src/config_man.rs:87
↓ 14 callers
Function
create_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 callers
Function
create_test_key_cert
Helper to create test key/cert pairs.
collab_mode/src/webchannel/e2e_tests.rs:101
↓ 12 callers
Function
parseIdentity
(header: string)
worker/src/auth.ts:21
↓ 12 callers
Method
shutdown
(&self)
collab_mode/src/webchannel.rs:646
↓ 11 callers
Method
apply_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 callers
Method
close
()
worker/worker-configuration.d.ts:3229
↓ 11 callers
Method
config
Get a copy of the loaded configuration
collab_mode/src/config_man.rs:331
↓ 11 callers
Method
process_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 callers
Method
spawn
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 callers
Method
abort
()
worker/worker-configuration.d.ts:2028
↓ 10 callers
Function
generateKeyCert
(name: string)
worker/src/auth.test.ts:29
↓ 10 callers
Function
make_editor_fatop
(op: EditorOp, group_seq: GroupSeq)
collab_mode/src/engine.rs:1846
↓ 10 callers
Method
pos
Return the editor_pos if `editor_pos` is true; return internal_pos otherwise.
collab_mode/src/engine.rs:104
↓ 10 callers
Method
share_file
( &mut self, filename: &str, content: &str, meta: serde_json::Value, )
collab_mode/src/server/tests/mod.rs:562
↓ 9 callers
Function
apply
(doc: &mut String, op: &EditInstruction)
collab_mode/src/engine.rs:1828
↓ 9 callers
Method
apply_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 callers
Method
cert_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 callers
Method
check_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 callers
Method
scenario
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 callers
Method
convert_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 callers
Method
create_sock
Create a [`Sock`] for communicating with `peer_id` through the client bound to `signaling_addr`.
collab_mode/src/signaling/client.rs:99
↓ 8 callers
Method
drain
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 callers
Method
get_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 callers
Method
mark_remote_failed
(&mut self, peer: &ServerId, reason: String)
collab_mode/src/server.rs:410
↓ 8 callers
Method
range_len
Return the length of the current range.
collab_mode/src/engine.rs:173
↓ 8 callers
Method
replace_and_save
Override with a new config and save to disk
collab_mode/src/config_man.rs:390
↓ 8 callers
Method
run
Run the actor in a loop and handle messages.
collab_mode/src/signaling/client.rs:462
↓ 8 callers
Method
send_notification
( &self, method: &str, params: serde_json::Value, )
collab_mode/src/server/tests/mod.rs:217
↓ 7 callers
Method
build_channel
Build a `WebChannel` wired into this factory.
collab_mode/src/webchannel.rs:1289
↓ 7 callers
Method
convert_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 callers
Function
establish_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 callers
Method
get_ops_applied
(&self)
collab_mode/src/server/transcript_tests.rs:204
↓ 7 callers
Method
is_dead
Return false for live text, true for dead text.
collab_mode/src/engine.rs:62
↓ 7 callers
Method
process_ops
Process `op` from a client, return the transformed `ops`.
collab_mode/src/engine.rs:1790
↓ 7 callers
Method
signaling_url
(&self)
collab_mode/src/webchannel/e2e_tests.rs:85
↓ 7 callers
Function
verifyIdentity
(identity: Identity, signatureB64: string)
worker/src/auth.ts:61
↓ 6 callers
Function
apply_editor_op
(doc: &mut String, op: &EditorOp)
collab_mode/src/engine.rs:1816
↓ 6 callers
Method
cancel
* 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 callers
Method
connect
* 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 callers
Method
fix_world_next
Ask the main loop to run `fix_world` on its next iteration.
collab_mode/src/server.rs:1211
↓ 6 callers
Method
get_key_and_cert
Load or create and write a self-signed key/cert pair for `name`.
collab_mode/src/config_man.rs:252
↓ 6 callers
Function
hashCert
(certDer: Uint8Array)
worker/src/auth.ts:50
↓ 6 callers
Function
id_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 callers
Function
init_test_tracing
()
collab_mode/src/server/tests/mod.rs:22
↓ 6 callers
Method
maybe_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 callers
Method
move_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 callers
Function
new_connection_id
Create a new connection id.
collab_mode/src/server.rs:300
↓ 6 callers
Function
pos_less_than
(pos1: u64, pos2: u64, site1: &SiteId, site2: &SiteId)
collab_mode/src/op.rs:65
↓ 6 callers
Function
send_to_remote
Send a message to a remote host via WebChannel with error logging.
collab_mode/src/server.rs:5112
↓ 6 callers
Method
shift_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 callers
Function
sign_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 callers
Method
connect_test
In-process routing via `TestRemote`.
collab_mode/src/webchannel.rs:445
↓ 5 callers
Function
consume_automatic_messages
Consume automatic messages from channel (Hey and ICE progress)
collab_mode/src/webchannel/e2e_tests.rs:136
↓ 5 callers
Function
create_complex_project
Creates a complex project directory with nested structure.
collab_mode/src/server/tests/mod.rs:907
↓ 5 callers
Function
create_test_id
(name: &str)
collab_mode/src/webchannel.rs:1400
↓ 5 callers
Function
create_test_signaling_server
Helper to create a test signaling server and return its address
collab_mode/src/signaling/client_tests.rs:12
↓ 5 callers
Method
deserializeAttachment
()
worker/worker-configuration.d.ts:3149
↓ 5 callers
Function
encodeMsg
(msg: SignalingMsg)
worker/src/messages.ts:36
↓ 5 callers
Function
expand_project_paths
Helper function to expand project paths to absolute paths
collab_mode/src/server.rs:5142
↓ 5 callers
Method
getWebSockets
(tag?: string)
worker/worker-configuration.d.ts:547
↓ 5 callers
Method
get_content
(&self)
collab_mode/src/server/transcript_tests.rs:200
↓ 5 callers
Method
hostid
(&self)
collab_mode/src/webchannel.rs:350
next →
1–100 of 852, ranked by callers