How to do it...

  1. Click Open Project in the GoLand IDE to open websocket-server.go, which we wrote in our previous recipe, as shown in the following screenshot:
  1. Once the project opens, click on Edit Configurations as shown in the following screenshot:
  1. Select Add New Configuration by clicking the + sign as shown in the following screenshot:
  1. Select Go Build, rename the configuration to WebSocket Local Debug, change Run kind to Directory

Get Go Web Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.