You can use wscat
:
sudo apt-get install node-ws
#
wscat -c ws://echo.websocket.org
connected (press CTRL+C to quit)
> foo
< foo
> bar
< bar
>
Related cards:
HowTo apply Test Driven Development to Container Images
Apply Test Driven Development(TDD) to the process of building container images by defining test before writing code and automate the testing process. Iterate through the TDD cycle while developing and running the tests later in continuous integrat...
swaks - Swiss Army Knife SMTP, the all-purpose smtp transaction tester
swaks is a very nice tool to test SMTP. For the most linux distributions you can easily install it with your package management system.
This example send an email from from@example.com
to `to@example.c...
Testing AWS SNS Subscription Filter Policies
A convenient way to test SNS Subscription Filter Policies is using an email address as the subscription endpoint. However, for this to work when the filter is applied to the `...
GitLab: Test Mailing from the Rails Console
Open a console
sudo gitlab-rails console
Note
This takes some minutes to start
Send a mail
Use the following command on the rails console to send an email.
Notify.test_email('destination_email@address.com', 'Messa...
send a testmail via exim
Sending a testmail from a server with a configured exim is easy as pie.
From your usershell:
-
tell exim that we want to send a mail to an recipient and tell us about the details of the sending procedure
$ exim -v receipient@fo...
How to Protect container images with production tag from ECR lifecycle rules
If you want to automatically delete old container images from your Elastic Container Registry, the solution is a quite simple ECR Lifecycle Rule that deletes images e.g. 7 days after they have been pushed to the registry.
If you however want to _...
HowTo: Fix nginx not reloading with long gzip_types lines
When using many or very long entries of MIME-types that shoudl be gziped in gzip_types
directives in nginx
you might not be able to successfully reload the service and get this error message instead:
nginx: [emerg] could not build the tes...
FAQ for When PostgreSQL Indexes Are Corrupted After Locale Changes
When changing glibc versions, it's possible to end up with corrupt indexes in PostgreSQL.
Are My Indexes Affected?
If your database has...
HowTo: Curl applications that are usually behind reverse proxies with TLS termination without the application redirecting to https schema
A lot of web applications require being called over https
, which is a good thing. It's possible to configure this requirement at the web- or proxy server level, where nginx
or apache
will just redirect every request on http
to https
. Som...
netfilter's Connection Tracking system (nf_conntrack)
What is netfilter's Connection Tracking system?
The connection tracking system often referenced as nf_conntrack
is part of the Netfilter framework. It allows the ...