Skip to content

[FEATURE] Support Unix Domain Sockets #909

Closed
@F1bonacc1

Description

@F1bonacc1

Is there an existing feature request for this?

  • I have searched the existing feature requests

Is your feature request related to a problem? Please describe.

Using UNIX Domain Sockets (UDS) allows more flexibility in avoiding multiple projects (on the same host) collisions.
See here: F1bonacc1/process-compose#172

Describe the solution that you would like.

I am planning to implement both port and UDS based communication.
A user flag will select this.
I would like to be able to do something along the following lines:

var ws *websocket.Conn
if UDS {
  ws, _, err = websocket.DefaultDialer.DialUnix("ws://unix/hello", "/tmp/path.sock", nil)
}else{
  ws, _, err = websocket.DefaultDialer.Dial("ws://localhost:8080/hello", nil)
}
ws.WriteMessage(...)

Describe alternatives you have considered.

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions