Skip to content

Commit

Permalink
add set scheme to Readme and ConnectionTest
Browse files Browse the repository at this point in the history
  • Loading branch information
kosyloa committed Dec 4, 2023
1 parent 96f1bae commit c9e8d12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions DXFeedFrameworkTests/DXConnectionTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ final class DXConnectionTest: XCTestCase {
override class func setUp() {
// The experimental property must be enabled.
try? SystemProperty.setProperty("dxfeed.experimental.dxlink.enable", "true")
// Set scheme for dxLink.
try? SystemProperty.setProperty("scheme", "ext:resource:dxlink.xml")
}

func testDXLinkConnection() throws {
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ class Listener: DXEventListener {

// The experimental property must be enabled.
try SystemProperty.setProperty("dxfeed.experimental.dxlink.enable", "true")

// Set scheme for dxLink.
try SystemProperty.setProperty("scheme", "ext:resource:dxlink.xml")
// For token-based authorization, use the following address format:
// "dxlink:wss://demo.dxfeed.com/dxlink-ws[login=dxlink:token]"
let endpoint = try DXEndpoint.builder()
Expand Down

0 comments on commit c9e8d12

Please sign in to comment.