chore: new adapter
This commit is contained in:
1 parent
6ec9d998be
commit
f8bd9d3de7
7 files changed
+22
-1
No files matched your search
@@ -0,0 +1,2 @@
|
|||||||
|
# nekodog
|
||||||
|
此协议为替代QQ平台 OnebotV11长期不可靠问题
|
||||||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1 @@
|
|||||||
|
import { createServer } from 'node:net';
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
import { createServer } from 'node:net';
|
||||||
|
export class NewAdapterNetwork {
|
||||||
|
constructor(public host: number, public port: number) { }
|
||||||
|
async open() {
|
||||||
|
const server = createServer((socket) => {
|
||||||
|
socket.on('data', (data) => {
|
||||||
|
|
||||||
|
});
|
||||||
|
socket.on('end', () => {
|
||||||
|
|
||||||
|
});
|
||||||
|
socket.on('connect', () => {
|
||||||
|
|
||||||
|
})
|
||||||
|
});
|
||||||
|
server.listen(this.port, this.host);
|
||||||
|
}
|
||||||
|
}
|
||||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"http": {
|
"http": {
|
||||||
"enable": false,
|
"enable": true,
|
||||||
"host": "",
|
"host": "",
|
||||||
"port": 3000,
|
"port": 3000,
|
||||||
"secret": "",
|
"secret": "",
|
||||||
|
|||||||
Reference in new issue
Block a user