chore: new adapter
This commit is contained in:
1 parent
3f2dcfbacc
commit
27ae331352
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": {
|
||||
"enable": false,
|
||||
"enable": true,
|
||||
"host": "",
|
||||
"port": 3000,
|
||||
"secret": "",
|
||||
|
||||
Reference in new issue
Block a user