[Debugger] Add socket.close to js api doc

This commit is contained in:
shygoo 2020-12-17 10:58:42 -06:00
parent 5888929cac
commit 3f9ac808b3
1 changed files with 12 additions and 6 deletions

View File

@ -121,8 +121,8 @@ span.tag2 {
<div class="property"> <div class="property">
<div class="propertyname">mem.u8|u16|u32|s8|s16|s32|float|double</div> <div class="propertyname">mem.u8|u16|u32|s8|s16|s32|float|double</div>
<div class="propertydesc"> <div class="propertydesc">
Arrays for reading and modifying values in virtual memory. Arrays for reading and writing values in virtual memory.
Virtual addresses are always used for indeces regardless of type size. Virtual addresses are always used for indices regardless of type size.
<pre class="example"> <pre class="example">
var addr_power = 0x8033B21E var addr_power = 0x8033B21E
@ -281,7 +281,7 @@ events.onexec(0x802CB1C0, function()
}) })
</pre> </pre>
<pre class="example"> <pre class="example">
events.onexec(ADDR_ANY, function(pc)) events.onexec(ADDR_ANY, function(pc)
{ {
// Log every step! // Log every step!
console.log('CPU is executing 0x' + pc.hex()) console.log('CPU is executing 0x' + pc.hex())
@ -843,6 +843,12 @@ server.on('connection', function(socket)
Writes <span class="snip">data</span> to the socket. Writes <span class="snip">data</span> to the socket.
</div> </div>
</div> </div>
<div class="property">
<div class="propertyname">socket.close()</div>
<div class="propertydesc">
Closes the socket.
</div>
</div>
<div class="property"> <div class="property">
<div class="propertyname">socket.on('data', callback)</div> <div class="propertyname">socket.on('data', callback)</div>
<div class="propertydesc"> <div class="propertydesc">