# SockManager

    public class SockManager

SockManager is a class that wraps a golang `sockManager` object

Should not be used on its own

Show on GitHub

- `init(_:)`

  Class constructor using sockBasePath passed as parameter as UDS base path

  Throws

  `SockManagerError`: If the initialization of the socket manager failed

  #### Declaration

  Swift

      public init(_ sockBasePath: URL) throws

  #### Parameters

  `sockBasePath` | The path where the UDS will be created

  Show on GitHub
- `newSockPath()`

  Creates an UDS and returns its path

  Throws

  `SockManagerError`: If the socket creation failed

  #### Declaration

  Swift

      public func newSockPath() throws -> String

  #### Return Value

  The path of the created socket

  Show on GitHub

© 2022 . All rights reserved. (Last updated: 2022-12-05)

Generated by jazzy ♪♫ v0.14.3, a Realm project.