Skip to content

Commit

Permalink
fixes an infinite loop error and the doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaillandier committed Oct 29, 2024
1 parent 242a137 commit 9cb044b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gama.core/src/gama/core/kernel/root/PlatformAgent.java
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ public Object sendMessageThroughServer(final IScope scope) {
* @date 3 nov. 2023
*/
public void sendMessage(final IScope scope, final Object message) {
sendMessage(scope,GamaServerMessage.Type.SimulationOutput);
sendMessage(scope, message,GamaServerMessage.Type.SimulationOutput);
}

public void sendMessage(final IScope scope, final Object message, final gama.core.runtime.server.GamaServerMessage.Type type) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ public static String imgToBase64String(final GamaImage img, final String formatN
@operator (
value = "send_image_to_websocket",
can_be_const = false)
@doc ("Takes a snapshot of the display whose name is passed in parameter and returns the image. "
+ "The search for the display begins in the agent passed in parameter and, if not found, its experiment. A custom size (a point representing width x height) can be given "
+ "Returns nil if no display can be found or the snapshot cannot be taken.")
@doc ("Send the given image to the websocket using Base64.")
@no_test
public static GamaImage sendImageWebsocket(final IScope scope, final GamaImage image) {
PlatformAgent pa = GAMA.getPlatformAgent();
Expand Down

0 comments on commit 9cb044b

Please sign in to comment.