Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple WebSocket one-to-one Chat server

Github

Can be found on: https://github.com/dark705/go-ws-chat

Docker

Can be found on: https://hub.docker.com/r/dark705/go-ws-chat

API endpoints

  • / - index, static WebSocket Client view
  • /ws - Web Socket connection

Kubernetes endpoint probes

  • /kuber/startup - Startup probe. See Environment.
  • /kuber/live - Live probe. See Environment.
  • /kuber/ready - Ready probe. See Environment.

Configuration

Environment

  • VERSION - Version of application. Default:"version_not_set"

  • LEVEL - LogLevel. Default: "info". Possible values:

    • "debug"
    • "info"
    • "warning"
    • "error"
    • "fatal"
  • HTTP_PORT - HTTP port of application.Default: "8000"`

  • HTTP_REQUEST_HEADER_MAX_SIZE - Maximum HTTP request header size in bites. Default: "10000"

  • HTTP_REQUEST_READ_HEADER_TIMEOUT_MILLISECONDS - Maximum time for read HTTP request header in milliseconds. Default: " 2000"

  • WEB_SOCKET_UPGRADER_CHECK_ORIGIN - Check Origin header for WS connection. Default: true

  • WEB_SOCKET_UPGRADER_READ_BUFFER_SIZE - WS read buffer size. Default: "2048"

  • WEB_SOCKET_UPGRADER_WRITE_BUFFER_SIZE - WS write buffer size. Default: "2048"

  • WEB_SOCKET_HANDLER_WRITE_TIMEOUT_SECONDS - Max duration time for write WS message to client in seconds. Default: "20"

  • WEB_SOCKET_HANDLER_READ_TIMEOUT_SECONDS - Max duration time for read WS message from client in seconds. Default: "20"

  • WEB_SOCKET_HANDLER_READ_LIMIT_PER_MESSAGE - Max WS message read size. Default: 2048

  • WEB_SOCKET_HANDLER_PING_INTERVAL_SECONDS - WS Ping client duration interval in seconds. Default: 5

  • PROMETHEUS_PORT - Prometheus port. Default:"9000"

  • KUBER_PROBE_START_UP_SECONDS - Time seconds after start, when Startup probe will return Ok. Default:"0"

  • KUBER_PROBE_PROBABILITY_LIVE - Probability (from 0 to 100) Live probe return Ok. Default:"100", means - always live.

  • KUBER_PROBE_PROBABILITY_READY - Probability (from 0 to 100) Ready probe return Ok. Default:"100", means - always ready.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages