Silence warnings of stream_socket_client()

I encountered a problem, when trying to publish a message to an unreachable server.

The StreamSocketClient throws an error, which is right. But PHP also generates a warning on background, which may get printed to the output.

As a solution, I'm using a silence operator before the stream_socket_client().