Authentication while using Wire Protocol over raw TCP Sockets

Hello, I am trying to communicate with MongoDB via TCP sockets and Wire Protocol. However, I am confused about how to authenticate with username and password on Wire Protocol.

Any suggestions or link would be helpful


The following documentation may be helpful: