API reference / @jsprismarine/script-host / debugger/thread
debugger/thread
Classes
Interfaces
DebuggerThreadConnection
Defined in: script-host/src/debugger/thread.ts:17
A connection the socket thread made or accepted.
Properties
address
readonlyaddress:string
Defined in: script-host/src/debugger/thread.ts:21
The extension's IP address.
endpoint
readonlyendpoint:DebuggerChannelEndpoint
Defined in: script-host/src/debugger/thread.ts:19
The end of the channel to the extension that a PortDebuggerChannel wraps.
port
readonlyport:number
Defined in: script-host/src/debugger/thread.ts:23
The extension's port.
DebuggerThreadEvents
Defined in: script-host/src/debugger/thread.ts:27
What the socket thread tells the thread that started it. Both run on that thread's event loop.
Methods
activity()
activity():
void
Defined in: script-host/src/debugger/thread.ts:31
The extension sent a message, or the connection closed, so a session has something to read.
Returns
void
connected()
connected(
connection):void
Defined in: script-host/src/debugger/thread.ts:29
A connection to the extension arrived; earlier connections have closed.
Parameters
connection
Returns
void
Type Aliases
DebuggerThreadMessage
DebuggerThreadMessage = {
error?:string;id:number;kind:"reply";port?:number; } | {connection:DebuggerThreadConnection;kind:"connected"; } | {kind:"activity"; }
Defined in: script-host/src/debugger/thread.ts:41
A message from the socket thread.
DebuggerThreadRequest
DebuggerThreadRequest = {
id:number;op:"listen";options:ListenOptions; } | {id:number;op:"connect";options:ConnectOptions; } | {id:number;op:"close"; }
Defined in: script-host/src/debugger/thread.ts:35
A request to the socket thread.