mirror of
https://github.com/codex-storage/nim-websock.git
synced 2025-01-22 16:39:19 +00:00
5af418f850
* add accepts api * Fix partial frame handling and allow extensions to hijack the flow (#56) * moving files around * wip * wip * move tls example into server example * add tls functionality * rename * rename * fix tests * move extension related files to own folder * use trace instead of debug * export extensions * rework partial frame handling and closing * rework status codes as distincts * logging * re-enable extensions processing for frames * enable all test for non-tls server * remove tlsserver * remove offset to mask - don't think we need it * pass sessions extensions when calling send/recv * adding encode/decode extensions flow test * move server/client setup to helpers * proper frame order execution on decode * fix tls tests * fix merge * add tls support for `accept` call * fix tests to use accepts & cb
32 lines
1.3 KiB
Nim
32 lines
1.3 KiB
Nim
packageName = "ws"
|
|
version = "0.1.0"
|
|
author = "Status Research & Development GmbH"
|
|
description = "WS protocol implementation"
|
|
license = "MIT"
|
|
skipDirs = @["examples", "test"]
|
|
|
|
requires "nim >= 1.2.6"
|
|
requires "chronos >= 3.0.0"
|
|
requires "httputils >= 0.2.0"
|
|
requires "chronicles >= 0.10.0"
|
|
requires "stew >= 0.1.0"
|
|
requires "asynctest >= 0.2.0 & < 0.3.0"
|
|
requires "nimcrypto"
|
|
requires "bearssl"
|
|
|
|
task test, "run tests":
|
|
exec "nim --hints:off c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=info ./tests/testcommon.nim"
|
|
rmFile "./tests/testcommon"
|
|
|
|
exec "nim --hints:off c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=info ./tests/testwebsockets.nim"
|
|
rmFile "./tests/testwebsockets"
|
|
|
|
exec "nim --hints:off -d:secure c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=info ./tests/testwebsockets.nim"
|
|
rmFile "./tests/testwebsockets"
|
|
|
|
exec "nim --hints:off -d:accepts c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=info ./tests/testwebsockets.nim"
|
|
rmFile "./tests/testwebsockets"
|
|
|
|
exec "nim --hints:off -d:secure -d:accepts c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=info ./tests/testwebsockets.nim"
|
|
rmFile "./tests/testwebsockets"
|