mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-08-17 04:42:49 +00:00
Add Electron Forge
This commit is contained in:
parent
1cd91f91e9
commit
5a999473ca
31 changed files with 6811 additions and 2686 deletions
|
@ -1,4 +1,4 @@
|
|||
import net = require('net');
|
||||
import * as net from 'net';
|
||||
import { EventEmitter } from 'node:events';
|
||||
import { PlaybackErrorMessage, PlaybackUpdateMessage, PlayMessage, SeekMessage, SetSpeedMessage, SetVolumeMessage, VersionMessage, VolumeUpdateMessage } from './Packets';
|
||||
import { WebSocket } from 'ws';
|
||||
|
@ -56,7 +56,7 @@ export class FCastSession {
|
|||
} else {
|
||||
data = new Uint8Array(0);
|
||||
}
|
||||
|
||||
|
||||
const size = 1 + data.length;
|
||||
const header = Buffer.alloc(4 + 1);
|
||||
header.writeUint32LE(size, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue