Skip to content

Commit

Permalink
Use /tmp instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglinmike committed Jun 5, 2024
1 parent 7d63dca commit 3d1f34f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const createCommandServer = require('../create-command-server');
const createVoiceServer = require('../create-voice-server');

const WINDOWS_NAMED_PIPE = '\\\\?\\pipe\\my_pipe';
const MACOS_SYSTEM_DIR = '/var/run/at_driver_generic';
const MACOS_SOCKET_UNIX_PATH = '/var/run/at_driver_generic/driver.socket';
const MACOS_SYSTEM_DIR = '/tmp/at_driver_generic';
const MACOS_SOCKET_UNIX_PATH = '/tmp/at_driver_generic/driver.socket';
const DEFAULT_PORT = 4382;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ATDriverClientUnix {
}
}

static let pipe = "/var/run/at_driver_generic/driver.socket"
static let pipe = "/tmp/at_driver_generic/driver.socket"

func sendInitEvent() throws {
try self._sendEvent(name: "lifecycle", data: "hello")
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const WebSocket = require('ws');

const SOCKET_PATH = {
win32: '\\\\?\\pipe\\my_pipe',
darwin: '/var/run/at_driver_generic/driver.socket',
darwin: '/tmp/at_driver_generic/driver.socket',
}[process.platform];

const executable = path.join(__dirname, '..', 'bin', 'at-driver');
Expand Down

0 comments on commit 3d1f34f

Please sign in to comment.