merge-requests/6/head
Matthew 2021-08-09 14:16:36 -04:00
parent 08be688daa
commit 647e3be766
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
2 changed files with 128 additions and 134 deletions

View File

@ -57,6 +57,7 @@ export default class CSCLI {
} }
public async unixHandle(socket: net.Socket, data: Buffer) { public async unixHandle(socket: net.Socket, data: Buffer) {
console.log(data.toString());
const args = data.toString().trim().split('$'); const args = data.toString().trim().split('$');
const parsed: { Username: string, Type: string, Message?: string, Data?: any, HMAC: string } = JSON.parse(args[0]); const parsed: { Username: string, Type: string, Message?: string, Data?: any, HMAC: string } = JSON.parse(args[0]);
// FINISH VERIFICATION CHECKS // FINISH VERIFICATION CHECKS

View File

@ -59,13 +59,6 @@ func main() {
fmt.Printf("Connected to Redis [GO]\n") fmt.Printf("Connected to Redis [GO]\n")
HandleError(err, 1) HandleError(err, 1)
/*for {
fmt.Printf("Calling handler func [GO]\n")
if status == false {
handler(*config)
time.Sleep(1000000 * time.Millisecond)
}
}*/
handler(*config) handler(*config)
} }