🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

github.com/cf-routing/golang-websocket

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/cf-routing/golang-websocket

v0.0.0-20180117183908-1093262eb3b4
Version published
Created

golang-websocket

About

Simple app to test web socket connections passed into the application.

Instructions to deploy as this application.

Run the following commands

git clone https://github.com/cf-routing/golang-websocket.git
cd golang-websocket
cf api api.domain.com
cf auth [your_username] [your_password]
cf create-org testorg
cf target -o testorg
cf create-space testspace
cf target -o testorg -s testspace
cf push golang

After staging the app successfully, run the command cf app golang to get the URL for the app (e.g. golang.domain.com).

  • cf logs golang
  • Open your app in the browser with the index path (e.g. golang.domain.com/index)
  • Hit the "Send Message" button in the browser
  • If websockets are configured correctly in your CF, there should be logs with the message you sent

Example logs look like

2017-03-09T15:04:29.91-0800 [APP/PROC/WEB/0]OUT Received back from client: Hello, world!
2017-03-09T15:04:29.91-0800 [APP/PROC/WEB/0]OUT Sending to client: Received:  Hello, world!

FAQs

Package last updated on 17 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts