Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
displaying-musicalenvironment-content [2024/03/10 20:02] – steve.wang | displaying-musicalenvironment-content [2025/07/29 03:10] (current) – steve.wang | ||
---|---|---|---|
Line 6: | Line 6: | ||
**Things To Note:** This tutorial assumes you have already installed Konduktiva successfully using the [[https:// | **Things To Note:** This tutorial assumes you have already installed Konduktiva successfully using the [[https:// | ||
<code javascript> | <code javascript> | ||
- | let K = require(' | + | const K = require(' |
- | let e = K.setUpMusicalEnvironment(K.defaultConfigurationObject, | + | let e = K.setUpMusicalEnvironment(K.defaultConfigurationObject, |
</ | </ | ||
Line 47: | Line 47: | ||
Use the function called changeWebsocketServerPort like so: | Use the function called changeWebsocketServerPort like so: | ||
<code javascript> | <code javascript> | ||
+ | //assign the webscoket server to a variable: | ||
+ | K.wss = K.connectVariableToCurrentWss() | ||
+ | |||
+ | //Change the port: | ||
K.wss = K.changeWebsocketServerPort(8081, | K.wss = K.changeWebsocketServerPort(8081, | ||
</ | </ | ||
Line 55: | Line 59: | ||
Next you will have to change the port the client listens to inside the file test.js line 25. | Next you will have to change the port the client listens to inside the file test.js line 25. | ||
It looks like this currently change it to the port you want to: | It looks like this currently change it to the port you want to: | ||
- | ``` | + | <code JavaScript> |
const serverPort = 8080; // Replace with the port number on which the server is running | const serverPort = 8080; // Replace with the port number on which the server is running | ||
- | ``` | + | </ |
After that save and reload the client browser page. | After that save and reload the client browser page. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | [[using-worker-threads-with-konduktiva|Learn about using worker threads in Konduktiva next]] |