How to use self hosted server for signalling?

How to use Peerjs with this library?

Have you looked into FeathersJS?
You could setup a backend server with that which would do a lot more than just signalling.