# Calling matchmaker from server

**URL:** <https://forum.heroiclabs.com/t/calling-matchmaker-from-server/178>\
**Category:** Local Setup\
**Created:** [August 29, 2019, 3:43pm UTC](https://forum.heroiclabs.com/t/calling-matchmaker-from-server/178 "2019-08-29T15:43:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danim](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@danim](https://forum.heroiclabs.com/u/danim)\
**Post date:** [August 29, 2019, 3:43pm UTC](https://forum.heroiclabs.com/t/calling-matchmaker-from-server/178/1 "2019-08-29T15:43:12Z")

</div>

Is it possible to add a matchmaker entry from server code (from a Go module)? I would like to customize the users queries and properties depending on sensible information only accessible in the server

Thanks in advance.  
Kind regards

---

<div class="post-metadata">

**Author:** ![zyro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/zyro/32/14_2.png) [@zyro](https://forum.heroiclabs.com/u/zyro)\
**Post date:** [August 29, 2019, 5:13pm UTC](https://forum.heroiclabs.com/t/calling-matchmaker-from-server/178/2 "2019-08-29T17:13:19Z")

</div>

Matchmaking is strictly tied to active client socket connections so starting the matchmaking process must be done by the client.

If you want to fully control the contents of the matchmaking query and properties then allow the client to request to be matchmade as normal, and [register a before hook](https://heroiclabs.com/docs/runtime-code-basics/#before-hook) on that operation that either validates or completely replaces the contents for the query/properties. The realtime message type you’ll want to intercept is [“MatchmakerAdd”](https://heroiclabs.com/docs/runtime-code-basics/#message-names).
