Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F8199267
interactiveClient.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
741 B
Referenced Files
None
Subscribers
None
interactiveClient.js
View Options
const
net
=
require
(
'net'
);
const
os
=
require
(
'os'
);
const
path
=
require
(
'path'
);
const
SOCKET_PATH_UNIX
=
'/tmp/kolabmeet-server.sock'
;
const
SOCKET_PATH_WIN
=
path
.
join
(
'\\\\?\\pipe'
,
process
.
cwd
(),
'kolabmeet-server'
);
const
SOCKET_PATH
=
os
.
platform
()
===
'win32'
?
SOCKET_PATH_WIN
:
SOCKET_PATH_UNIX
;
module
.
exports
=
async
function
()
{
const
socket
=
net
.
connect
(
SOCKET_PATH
);
process
.
stdin
.
pipe
(
socket
);
socket
.
pipe
(
process
.
stdout
);
socket
.
on
(
'connect'
,
()
=>
process
.
stdin
.
setRawMode
(
true
));
socket
.
on
(
'close'
,
()
=>
process
.
exit
(
0
));
socket
.
on
(
'exit'
,
()
=>
socket
.
end
());
if
(
process
.
argv
&&
process
.
argv
[
2
]
===
'--stats'
)
{
await
socket
.
write
(
'stats\n'
);
socket
.
end
();
}
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 8, 10:34 PM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1052043
Default Alt Text
interactiveClient.js (741 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment