ogs-plugin-sdk
    Preparing search index...

    Namespace network

    Networking utilities to create TCP clients and servers

    const TCP_SERVER_PORT = 1234;
    const net = network.createServer((socket) => {
    console.log('socket connected!');
    });

    net.listen(TCP_SERVER_PORT, () => {
    console.log(`Server is listening on port ${TCP_SERVER_PORT}`);
    });

    Classes

    TCPServer
    TCPSocket

    Functions

    createServer