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
↓ 2 callers
Method
range
Return the current range.
collab_mode/src/engine.rs:191
↓ 2 callers
Method
remote_connected
(&self, host_id: &ServerId)
collab_mode/src/server.rs:4668
↓ 2 callers
Method
remove_remote
(&mut self, peer: &ServerId)
collab_mode/src/server.rs:416
↓ 2 callers
Method
reset_doc_from_disk
Reset a doc to the on-disk content: read the file fresh, diff against the buffer; if the content actually differs, process it as if remote ops. Used b
collab_mode/src/server.rs:3323
↓ 2 callers
Function
resp_unsupported
Returns a "Unsupported" close message, where the close reason is `msg`.
collab_mode/src/signaling/server.rs:423
↓ 2 callers
Function
run_socket
Run the editor receptor on socket. Returns when fatal error occurs.
collab_mode/src/editor_receptor.rs:24
↓ 2 callers
Function
sanitize_name
Reject names that aren't safe to use as filenames or cert subject alt names. Allow `[A-Za-z0-9_-]` only.
collab_mode/src/config_man.rs:12
↓ 2 callers
Method
save_file_to_disk
(&mut self, doc_id: &DocId)
collab_mode/src/server.rs:4637
↓ 2 callers
Method
send_connect_message
Helper function for sending connect message to signaling server plus cleaning up if failed to send (set remote state and send notification to editor).
collab_mode/src/server.rs:2558
↓ 2 callers
Method
send_to_remote_no_req_id
(&self, host_id: &ServerId, msg: Msg)
collab_mode/src/server.rs:5068
↓ 2 callers
Method
send_undo
( &mut self, file: serde_json::Value, kind: &str, )
collab_mode/src/server/tests/mod.rs:506
↓ 2 callers
Method
set
* Set a new stored value
worker/worker-configuration.d.ts:11448
↓ 2 callers
Method
setAlarm
(scheduledTime: number | Date, options?: DurableObjectSetAlarmOptions)
worker/worker-configuration.d.ts:580
↓ 2 callers
Method
set_remote_connecting1
Returns the new `connection_id`.
collab_mode/src/server.rs:320
↓ 2 callers
Method
set_remote_connecting2
Returns the new `connection_id`.
collab_mode/src/server.rs:347
↓ 2 callers
Method
set_signaling_binding
(&mut self, addr: &str)
collab_mode/src/server.rs:420
↓ 2 callers
Function
setup_connected_pair
Stand up two `Server`s sharing one in-memory factory and signaling state, do the `AcceptConnection` / `Connect` handshake, and return once both editor
collab_mode/src/server/tests/connection.rs:31
↓ 2 callers
Method
shift_affected_range_left
(&mut self)
collab_mode/src/engine.rs:177
↓ 2 callers
Method
start_connect
Starts the connection process for `peer_id`, which includes awaiting the future to get the transport, connecting with the peer with the transport, and
collab_mode/src/webchannel.rs:358
↓ 2 callers
Method
symmetric_transform
Transform `self` against every op in `ops` sequentially. In the meantime, transform every op in `ops` against `self`, and return the new `ops`.
collab_mode/src/op.rs:266
↓ 2 callers
Function
teardown
Tear down: drop the mock editor so editor_rx's held tx is gone; the server task then exits, the `SshRemote` actor drops, the ssh session closes, and t
collab_mode/src/server/tests/envoy.rs:120
↓ 2 callers
Function
trySend
(ws: WebSocket, msg: SignalingMsg)
worker/src/index.ts:329
↓ 2 callers
Method
update
* Update hosted image metadata * @param options Properties to update * @returns Updated image metadata * @throws {@link ImagesError} if
worker/worker-configuration.d.ts:11618
↓ 2 callers
Method
verify_buffer_engine_sync
Verify that engine's editor_len matches the actual buffer length.
collab_mode/src/server.rs:684
↓ 2 callers
Function
verify_dtls_cert
Signal Error if `conn` doesn't provide the same certificate as `cert`.
collab_mode/src/webchannel.rs:884
↓ 2 callers
Function
verify_identity
Verify `sig` is a valid signature of `id` made with the private key corresponding to `id.cert`, and that `id.timestamp` is within [`MAX_TIMESTAMP_OFFS
collab_mode/src/signaling/auth.rs:45
↓ 2 callers
Function
wait_for_connect_and_create_sock
Wait for Connect message and create Sock
collab_mode/src/webchannel/e2e_tests.rs:181
↓ 1 callers
Function
accept
Run a websocket receptor on `addr`. Returns a receiver that caller can read connections from.
collab_mode/src/websocket_receptor.rs:21
↓ 1 callers
Method
acceptWebSocket
(ws: WebSocket, tags?: string[])
worker/worker-configuration.d.ts:546
↓ 1 callers
Function
addToBlacklist
( db: D1Database, certHash: string, reason: string, )
worker/src/d1.ts:13
↓ 1 callers
Method
add_permission
Add or replace a permission entry for a host. Used by envoy mode to grant the spawning host full permissions.
collab_mode/src/config_man.rs:380
↓ 1 callers
Method
all_ops_after
Return the global and local ops after `seq`.
collab_mode/src/engine.rs:1116
↓ 1 callers
Method
append
(content: string | ReadableStream | Response, options?: ContentOptions)
worker/worker-configuration.d.ts:1543
↓ 1 callers
Method
apply_edit_instruction
Apply an EditInstruction to the buffer and verify sync.
collab_mode/src/server.rs:698
↓ 1 callers
Method
batch_transform
Transform `self` against every op in `ops` sequentially.
collab_mode/src/op.rs:257
↓ 1 callers
Function
bench_diff
Measure three things for the equal-content (empty diff) case: (a) time to collect the GapBuffer to a String, (b) time for `dissimilar::diff` on two eq
collab_mode/src/bin/test_hash_speed.rs:135
↓ 1 callers
Method
bind_real
( &self, addr: String, id: EndpointId, my_key_cert: ArcKeyCert, truste
collab_mode/src/signaling/client.rs:142
↓ 1 callers
Method
bind_test
( &self, addr: String, id: EndpointId, factory_state: Arc<Mutex<TestFactorySta
collab_mode/src/signaling/client.rs:262
↓ 1 callers
Function
build_bind_request
Build the WebSocket upgrade request with the four `X-Collab-*` bind headers attached. The server's `accept_hdr_async` callback validates them; if anyt
collab_mode/src/signaling/client.rs:861
↓ 1 callers
Method
candidate_sender
Get a candidate sender for this sock. This allows sending candidates without holding a reference to the sock.
collab_mode/src/signaling/client.rs:382
↓ 1 callers
Method
cert_hash
Get peer's cert hash, which is the hash portion of [`Sock::id`].
collab_mode/src/signaling/client.rs:375
↓ 1 callers
Function
chunks_to_ops
Walk the dissimilar chunk sequence and emit OT ops with positions in the OLD (left-hand-side) document, then return them in REVERSE order so each op c
collab_mode/src/server.rs:796
↓ 1 callers
Method
close_and_wait
Root-only. Cancel, close the shared tracker, and wait up to `timeout` for every tracked task to finish. # Panics Panics if called on a non-root mana
collab_mode/src/cancel.rs:98
↓ 1 callers
Method
connect_io
Spawn an [`IoRemote`] for an already-established byte stream (envoy stdio, ssh stdio).
collab_mode/src/webchannel.rs:431
↓ 1 callers
Method
connect_ssh
Spawn an [`SshRemote`] for a peer reachable via ssh.
collab_mode/src/webchannel.rs:407
↓ 1 callers
Method
connect_with_sock
Connect using an existing Sock from SignalingClient.
collab_mode/src/webchannel.rs:477
↓ 1 callers
Method
create
* Create a new repository with an initial access token. * @param name Repository name (alphanumeric, dots, hyphens, underscores). * @param o
worker/worker-configuration.d.ts:10172
↓ 1 callers
Method
create_allowed
Check if a host has create permission Always returns true for ourselves.
collab_mode/src/config_man.rs:351
↓ 1 callers
Function
create_dtls_client
( conn: Arc<dyn Conn + Send + Sync>, my_key_cert: ArcKeyCert, their_cert: CertDerHash, )
collab_mode/src/webchannel.rs:917
↓ 1 callers
Function
create_dtls_server
( conn: Arc<dyn Conn + Send + Sync>, my_key_cert: ArcKeyCert, their_cert: CertDerHash, )
collab_mode/src/webchannel.rs:898
↓ 1 callers
Function
create_sctp_client
( conn: Arc<dyn Conn + Send + Sync>, )
collab_mode/src/webchannel.rs:948
↓ 1 callers
Function
create_sctp_server
( conn: Arc<dyn Conn + Send + Sync>, )
collab_mode/src/webchannel.rs:935
↓ 1 callers
Function
current_unix_epoch_in_secs
Returns the current unix epoch in seconds.
collab_mode/src/signaling/key_store.rs:14
↓ 1 callers
Function
decode_trusted_header
Inverse of [`encode_trusted_header`]. An empty header value decodes to an empty list (rather than a list with a single empty string).
collab_mode/src/signaling.rs:65
↓ 1 callers
Function
default_name
Pick a default name when the user hasn't set `host_id` in config. Use the OS hostname, replace non-`[A-Za-z0-9_-]` char with `-` and truncating to 20
collab_mode/src/main.rs:313
↓ 1 callers
Method
delete
(keys: string | string[])
worker/worker-configuration.d.ts:2021
↓ 1 callers
Method
deleteAll
(options?: DurableObjectPutOptions)
worker/worker-configuration.d.ts:577
↓ 1 callers
Function
deleteEndpoint
(db: D1Database, endpointId: EndpointId)
worker/src/d1.ts:89
↓ 1 callers
Method
delete_allowed
Check if a host has delete permission Always returns true for ourselves
collab_mode/src/config_man.rs:366
↓ 1 callers
Method
doc
Return the doc of the ops.
collab_mode/src/engine.rs:35
↓ 1 callers
Function
encode_trusted_header
Encode a trust list as a comma-separated string suitable for use as an HTTP header value. Endpoint ids have the shape `<name>::<cert_hash>` so they do
collab_mode/src/signaling.rs:52
↓ 1 callers
Method
establish_sctp
ICE/DTLS/SCTP establishment. The DTLS conn is kept alive by the SCTP association’s `net_conn`, so we don’t need to return it.
collab_mode/src/webchannel.rs:520
↓ 1 callers
Method
find_docs_and_path_to_delete
We’re trying to delete `file`, find the files we need to delete (if `file` is a directory), and find the subscribers we need to notify of the deletion
collab_mode/src/server.rs:4536
↓ 1 callers
Method
fix_world_remotes
Remove pass: handle reconnect/etc for remotes.
collab_mode/src/server.rs:1238
↓ 1 callers
Method
fix_world_signaling
Signaling pass: Connect to signaling servers. Also handles bind timeouts.
collab_mode/src/server.rs:1363
↓ 1 callers
Method
fix_world_timeouts
Timeout pass: Stage1 > 10s and Stage2 > 30s flip to Disconnected (if `ever_connected`) or Failed (if never connected).
collab_mode/src/server.rs:1311
↓ 1 callers
Function
frame_read
Read a length-prefixed serialized [`Message`] from `reader`.
collab_mode/src/webchannel/byte_stream.rs:96
↓ 1 callers
Method
generate_redo_op
Generate a redo op from the current undo tip. Return en empty vector if there's no more ops to redo.
collab_mode/src/engine.rs:1749
↓ 1 callers
Function
generate_temp_key_cert
Generate a fresh self-signed key/cert pair without saving to disk. Returns `(key_pem, cert_pem, cert_hash)`. `name` is used as the cert's subject alt
collab_mode/src/config_man.rs:97
↓ 1 callers
Method
getAlarm
(options?: DurableObjectGetAlarmOptions)
worker/worker-configuration.d.ts:579
↓ 1 callers
Method
getWebSocketAutoResponseTimestamp
(ws: WebSocket)
worker/worker-configuration.d.ts:550
↓ 1 callers
Method
get_config_file_path
Get the path where the config file should be located
collab_mode/src/config_man.rs:197
↓ 1 callers
Function
get_editor_count
Get number of editors needed from commands
collab_mode/src/server/transcript_tests.rs:331
↓ 1 callers
Method
get_endpoint_info
Get the server info for the server with `id`.
collab_mode/src/signaling/server.rs:132
↓ 1 callers
Function
get_ice_credential_from_sdp
Helper to parse ICE credentials from SDP string.
collab_mode/src/ice.rs:106
↓ 1 callers
Method
get_mut_by_editor_desc
Get a mutable remote doc by EditorFileDesc.
collab_mode/src/server.rs:756
↓ 1 callers
Function
get_random_port
()
collab_mode/src/webchannel/e2e_tests.rs:43
↓ 1 callers
Function
get_random_port
()
collab_mode/src/server/tests/mod.rs:93
↓ 1 callers
Method
global_ops_after
Return global ops after `seq`.
collab_mode/src/engine.rs:1336
↓ 1 callers
Method
handelRouteMessage
(request: Request)
worker/src/index.ts:129
↓ 1 callers
Method
handleUpgrade
(request: Request)
worker/src/index.ts:80
↓ 1 callers
Method
handle_accept_connection
Handle AcceptConnection notification from editor. Declares intent in `ideal_world` and kicks off the bind inline so the caller’s next request (e.g. Co
collab_mode/src/server.rs:4943
↓ 1 callers
Method
handle_close_file_from_remote
( &mut self, next: Next<'a>, file_desc: FileDesc, requester: ServerId,
collab_mode/src/server.rs:4416
↓ 1 callers
Function
handle_connection
Handle a connection from client. Read headers and validate auth, if pass, start conversation with it.
collab_mode/src/signaling/server.rs:178
↓ 1 callers
Method
handle_connection_state_from_editor
(&self, next: &Next<'a>)
collab_mode/src/server.rs:3888
↓ 1 callers
Method
handle_disconnect_from_file
( &mut self, next: &Next<'a>, params: DisconnectFileParams, )
collab_mode/src/server.rs:4338
↓ 1 callers
Method
handle_editor_notification
( &mut self, next: &Next<'a>, notif: lsp_server::Notification, _msg_tx: &mpsc:
collab_mode/src/server.rs:1741
↓ 1 callers
Method
handle_editor_request
( &mut self, req: lsp_server::Request, next: &Next<'a>, )
collab_mode/src/server.rs:1545
↓ 1 callers
Function
handle_message
Handle each client message, send response to `resp_tx`.
collab_mode/src/signaling/server.rs:253
↓ 1 callers
Method
handle_move_file
( &mut self, next: &Next<'a>, project_id: ProjectId, old_path: String,
collab_mode/src/server.rs:3548
↓ 1 callers
Method
handle_move_file_from_editor
( &mut self, next: &Next<'a>, params: MoveFileParams, )
collab_mode/src/server.rs:4079
↓ 1 callers
Method
handle_op_from_client
( &mut self, next: &Next<'a>, context_ops: ContextOps, remote_host_id: ServerI
collab_mode/src/server.rs:3412
↓ 1 callers
Method
handle_op_from_server
( &mut self, next: &Next<'a>, doc_id: DocId, ops: Vec<FatOp>, remote_h
collab_mode/src/server.rs:3599
↓ 1 callers
Method
handle_print_history_from_editor
( &self, next: &Next<'a>, params: PrintHistoryParams, )
collab_mode/src/server.rs:3863
↓ 1 callers
Method
handle_request_file
( &mut self, next: &Next<'a>, file_desc: FileDesc, remote_host_id: ServerId,
collab_mode/src/server.rs:3107
↓ 1 callers
Method
handle_request_ops
( &mut self, next: &Next<'a>, doc_id: DocId, after: GlobalSeq, remote_
collab_mode/src/server.rs:3507
↓ 1 callers
Method
handle_reset_from_disk_from_editor
( &mut self, next: &Next<'a>, params: ResetFromDiskParams, )
collab_mode/src/server.rs:4269
↓ 1 callers
Method
handle_save_file_from_editor
( &mut self, next: &Next<'a>, params: SaveFileParams, )
collab_mode/src/server.rs:4219
↓ 1 callers
Method
handle_send
(&self, msg: SignalingMsg)
collab_mode/src/signaling/client.rs:789
↓ 1 callers
Method
handle_send_info_from_editor
( &mut self, next: &Next<'a>, params: SendInfoParams, )
collab_mode/src/server.rs:3699
← previous
next →
201–300 of 852, ranked by callers