Snap not able to connect via sockets

I have a C application test which runs in daemon mode and listens for client on uds socket. And Client application which sends messages to test via uds. How can I allow Client to talk to test application, I tried bundling them in one snap as below but when connected it says permission denied while Socket creation.

name: test
version: "2.0"
grade: devel
confinement: devmode
architectures:
  - x86_64

apps:
   test:
 command: bin/run snap_build
 daemon: simple
 stop-command: bin/run stop
 plugs: [network, network-bind, shutdown, home, process-control]
   connect:
 command: bin/Client
 plugs: [network, network-bind, shutdown, home, process-control]
   help:
 command: bin/run help

parts:
  test:
plugin: dump
source: /home/prasha/Documents/test/publish/test-x86_64-.tar.gz
filesets:
  binaries:
    - bin/*
  libraries:
    - lib/*
  script:
    - script/*
  conf:
    - conf/*
  files:
    - version
prime:
  - $binaries
  - $libraries
  - $script
  - $conf
  - $files

Can you please guide?