rename nim-ws to nim-websock

This commit is contained in:
jangko 2021-06-27 13:35:36 +07:00
parent cb5255ea5f
commit b3c60bbd4e
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
34 changed files with 60 additions and 60 deletions

View File

@ -1,4 +1,4 @@
name: nim-ws CI name: CI
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
@ -38,10 +38,10 @@ jobs:
name: "${{ matrix.target.os }}-${{ matrix.target.cpu }} (${{ matrix.branch }})" name: "${{ matrix.target.os }}-${{ matrix.target.cpu }} (${{ matrix.branch }})"
runs-on: ${{ matrix.builder }} runs-on: ${{ matrix.builder }}
steps: steps:
- name: Checkout nim-ws - name: Checkout nim-websock
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
path: nim-ws path: nim-websock
submodules: true submodules: true
- name: Derive environment variables - name: Derive environment variables
@ -193,11 +193,11 @@ jobs:
rm -rf dist rm -rf dist
rm -rf .git rm -rf .git
- name: Run nim-ws tests - name: Run nim-websock tests
shell: bash shell: bash
run: | run: |
export UCPU="$cpu" export UCPU="$cpu"
cd nim-ws cd nim-websock
nimble install -y --depsOnly nimble install -y --depsOnly
nimble test nimble test
@ -218,7 +218,7 @@ jobs:
virtualenv --python=/usr/bin/python2 autobahn virtualenv --python=/usr/bin/python2 autobahn
source autobahn/bin/activate source autobahn/bin/activate
pip install autobahntestsuite pip install autobahntestsuite
cd nim-ws cd nim-websock
mkdir autobahn/reports mkdir autobahn/reports
sed -i "s/COMMIT_SHA_SHORT/${GITHUB_SHA::7}/g" autobahn/index.md sed -i "s/COMMIT_SHA_SHORT/${GITHUB_SHA::7}/g" autobahn/index.md
sed -i "s/COMMIT_SHA/$GITHUB_SHA/g" autobahn/index.md sed -i "s/COMMIT_SHA/$GITHUB_SHA/g" autobahn/index.md
@ -265,4 +265,4 @@ jobs:
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
with: with:
personal_token: ${{ secrets.GITHUB_TOKEN }} personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./nim-ws/autobahn/reports publish_dir: ./nim-websock/autobahn/reports

View File

@ -2,7 +2,7 @@
"outdir": "./reports/server", "outdir": "./reports/server",
"servers": [{ "servers": [{
"agent": "nim-ws server", "agent": "websock server",
"url": "ws://127.0.0.1:8888/ws" "url": "ws://127.0.0.1:8888/ws"
}], }],

View File

@ -2,7 +2,7 @@
"outdir": "./reports/server_tls", "outdir": "./reports/server_tls",
"servers": [{ "servers": [{
"agent": "nim-wss server", "agent": "websock secure server",
"url": "wss://127.0.0.1:8889/wss" "url": "wss://127.0.0.1:8889/wss"
}], }],

View File

@ -1,6 +1,6 @@
# Autobahn summary report # Autobahn summary report
Generated by commit [COMMIT_SHA_SHORT](https://github.com/status-im/nim-ws/commit/COMMIT_SHA). Generated by commit [COMMIT_SHA_SHORT](https://github.com/status-im/nim-websock/commit/COMMIT_SHA).
* [ws server summary report](server/index.html) * [ws server summary report](server/index.html)
* [wss server summary report](server_tls/index.html) * [wss server summary report](server_tls/index.html)

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
@ -10,7 +10,7 @@
import import
std/[strutils], std/[strutils],
pkg/[chronos, chronicles, stew/byteutils], pkg/[chronos, chronicles, stew/byteutils],
../ws/[ws, types, frame, extensions/compression/deflate] ../websock/[websock, types, frame, extensions/compression/deflate]
const const
clientFlags = {NoVerifyHost, NoVerifyServerName} clientFlags = {NoVerifyHost, NoVerifyServerName}
@ -19,12 +19,12 @@ const
# so we are using different port # so we are using different port
when defined tls: when defined tls:
const const
agent = "nim-wss-client" agent = "websock secure client"
secure = true secure = true
serverPort = 9002 serverPort = 9002
else: else:
const const
agent = "nim-ws-client" agent = "websock client"
secure = false secure = false
serverPort = 9001 serverPort = 9001

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
@ -12,7 +12,7 @@ import pkg/[
chronicles, chronicles,
stew/byteutils] stew/byteutils]
import ../ws/ws import ../websock/websock
proc main() {.async.} = proc main() {.async.} =
let ws = when defined tls: let ws = when defined tls:

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
@ -12,7 +12,7 @@ import pkg/[chronos,
chronicles, chronicles,
httputils] httputils]
import ../ws/[ws, extensions/compression/deflate] import ../websock/[websock, extensions/compression/deflate]
import ../tests/keys import ../tests/keys
proc handle(request: HttpRequest) {.async.} = proc handle(request: HttpRequest) {.async.} =

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
@ -13,8 +13,8 @@ import
stew/base64, stew/base64,
chronos, chronos,
chronicles], chronicles],
../../ws/types, ../../websock/types,
../../ws/frame ../../websock/frame
type type
Base64Ext = ref object of Ext Base64Ext = ref object of Ext

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
@ -13,8 +13,8 @@ import
stew/byteutils, stew/byteutils,
chronos, chronos,
chronicles], chronicles],
../../ws/types, ../../websock/types,
../../ws/frame ../../websock/frame
type type
HexExt = ref object of Ext HexExt = ref object of Ext

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
@ -10,8 +10,8 @@
import std/os import std/os
import pkg/[chronos, stew/byteutils, stew/io2] import pkg/[chronos, stew/byteutils, stew/io2]
import ../asyncunit import ../asyncunit
import ../../ws/ws, ../helpers import ../../websock/websock, ../helpers
import ../../ws/extensions/compression/deflate import ../../websock/extensions/compression/deflate
const const
dataFolder = "tests" / "extensions" / "data" dataFolder = "tests" / "extensions" / "data"

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
@ -10,7 +10,7 @@
import pkg/[chronos, stew/byteutils] import pkg/[chronos, stew/byteutils]
import ../asyncunit import ../asyncunit
import ./base64ext, ./hexext import ./base64ext, ./hexext
import ../../ws/ws, ../helpers import ../../websock/websock, ../helpers
suite "multiple extensions flow": suite "multiple extensions flow":
var server: HttpServer var server: HttpServer

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
@ -17,7 +17,7 @@ import pkg/[
chronicles, chronicles,
stew/byteutils] stew/byteutils]
import ../ws/ws import ../websock/websock
import ./keys import ./keys
let let

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
@ -9,7 +9,7 @@
import import
pkg/[asynctest, chronos], pkg/[asynctest, chronos],
../ws/extensions ../websock/extensions
suite "extension parser": suite "extension parser":
test "single extension": test "single extension":

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
@ -9,8 +9,8 @@
import pkg/[asynctest, stew/byteutils] import pkg/[asynctest, stew/byteutils]
include ../ws/frame include ../websock/frame
include ../ws/utils include ../websock/utils
# TODO: Fix Test. # TODO: Fix Test.

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
@ -15,7 +15,7 @@ import
chronos, chronos,
chronicles chronicles
], ],
../ws/[ws, utf8dfa] ../websock/[websock, utf8dfa]
suite "UTF-8 DFA validator": suite "UTF-8 DFA validator":
test "single octet": test "single octet":

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
@ -14,7 +14,7 @@ import pkg/[
chronicles, chronicles,
stew/byteutils] stew/byteutils]
import ../ws/ws import ../websock/websock
import ./asynctest import ./asynctest
import ./helpers import ./helpers

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
@ -7,14 +7,14 @@
## This file may not be copied, modified, or distributed except according to ## This file may not be copied, modified, or distributed except according to
## those terms. ## those terms.
packageName = "ws" packageName = "websock"
version = "0.1.0" version = "0.1.0"
author = "Status Research & Development GmbH" author = "Status Research & Development GmbH"
description = "WS protocol implementation" description = "WS protocol implementation"
license = "MIT" license = "MIT"
skipDirs = @["examples", "tests"] skipDirs = @["examples", "tests"]
requires "nim >= 1.2.0" # nimble will fail to install nim-ws if we are using 1.2.6 here requires "nim >= 1.2.0" # nimble will fail to install nim-websock if we are using 1.2.6 here
requires "chronos >= 3.0.0" requires "chronos >= 3.0.0"
requires "httputils >= 0.2.0" requires "httputils >= 0.2.0"
requires "chronicles#ba2817f1" requires "chronicles#ba2817f1"

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))

View File

@ -1,4 +1,4 @@
## nim-ws ## nim-websock
## Copyright (c) 2021 Status Research & Development GmbH ## Copyright (c) 2021 Status Research & Development GmbH
## Licensed under either of ## Licensed under either of
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) ## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))